Compare commits

..

6 commits
0.1.1 ... main

Author SHA1 Message Date
a2d9e8a83b Merge pull request 'Bump forgejo-release to v2' (#1) from actions-update into main
Reviewed-on: https://forgejo.neshweb.net///CI-Docker-Images/website-serve/pulls/1
2024-08-06 12:26:43 +00:00
dd005dda7d Bump forgejo-release to v2 2024-08-06 12:26:28 +00:00
fda5e65d4e
Switched to alpine and changed versioning
All checks were successful
/ build (push) Successful in 51s
/ release (push) Successful in 49s
2024-07-16 20:16:45 +02:00
c88dffcbee
Bumped warren-bank/serve to newest version for security reasons
All checks were successful
/ release (push) Successful in 7s
/ build (push) Successful in 1m24s
2024-06-20 18:34:12 +02:00
b05388db50
Updated workflow
All checks were successful
/ release (push) Successful in 8s
/ build (push) Successful in 1m48s
2023-12-29 13:06:40 +01:00
ac865efa95
Updated README 2023-12-29 13:05:18 +01:00
4 changed files with 23 additions and 6 deletions

View file

@ -1,7 +1,7 @@
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
- '[0-9]+'
jobs:
build:
@ -19,7 +19,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: forgejo.neshweb.net/ci-docker-images/website-serve-docker:${{ github.ref_name }}, forgejo.neshweb.net/ci-docker-images/website-serve-docker:latest
tags: forgejo.neshweb.net/ci-docker-images/website-serve:${{ github.ref_name }}, forgejo.neshweb.net/ci-docker-images/website-serve:latest
release:
needs: [build]
@ -27,7 +27,7 @@ jobs:
runs-on: docker
steps:
- name: Release New Version
uses: actions/forgejo-release@v1
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://forgejo.neshweb.net

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.vscode/*

View file

@ -1,2 +1,2 @@
FROM node:lts
RUN npm install --global "@warren-bank/serve"
FROM node:22-alpine
RUN npm install --global "@warren-bank/serve@130002.18.6"

View file

@ -1 +1,17 @@
# Placeholder
# website-serve Docker Image
This is a simple `node:22-alpine` based Docker Image with the `serve` fork of `@warren-bank` already preinstalled.
It can be used to serve static files like websites.
## Usage
To use the `serve` process, run the following `CMD` at the end of your own docker image:
```dockerfile
CMD [ "serve", DIRECTORY, "-p", PORT ]
```
Replace the values for `DIRECTORY` and `PORT` accordingly.
It is recommended to include a `serve.json` file inside the `DIRECTORY`. <br/>
The syntax for this can be found [here](https://github.com/warren-bank/node-serve/tree/master/lib/serve-handler)