Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
a2d9e8a83b | |||
dd005dda7d | |||
fda5e65d4e | |||
c88dffcbee | |||
b05388db50 | |||
ac865efa95 |
4 changed files with 23 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+\.[0-9]+\.[0-9]+'
|
- '[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -19,7 +19,7 @@ jobs:
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
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:
|
release:
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Release New Version
|
- name: Release New Version
|
||||||
uses: actions/forgejo-release@v1
|
uses: actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://forgejo.neshweb.net
|
url: https://forgejo.neshweb.net
|
||||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.vscode/*
|
|
@ -1,2 +1,2 @@
|
||||||
FROM node:lts
|
FROM node:22-alpine
|
||||||
RUN npm install --global "@warren-bank/serve"
|
RUN npm install --global "@warren-bank/serve@130002.18.6"
|
||||||
|
|
18
README.md
18
README.md
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue