Add Node.js-based static file server
This commit is contained in:
parent
00dcd7603e
commit
f4c70f09e0
3 changed files with 17 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
UID | GID | Container | Notes
|
UID | GID | Container | Notes
|
||||||
--------|-------|-----------------------|-----------------
|
--------|-------|-----------------------|-----------------
|
||||||
3 | 3 | docker-registry-ui |
|
3 | 3 | docker-registry-ui |
|
||||||
50 | 995 | image-wrangler | 995 = docker group
|
50 | 995 | image-wrangler | 995 = docker group, deprecated
|
||||||
60 | 60 | minetest-mapserver |
|
60 | 60 | minetest-mapserver |
|
||||||
70 | 70 | etherpad |
|
70 | 70 | etherpad |
|
||||||
|
80 | 80 | serve | Static HTTP Server based on Node.js
|
||||||
|
|
14
images/node-serve/Dockerfile
Normal file
14
images/node-serve/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
ARG REPO_LOCATION
|
||||||
|
# ARG BASE_VERSION
|
||||||
|
|
||||||
|
FROM ${REPO_LOCATION}minideb-node
|
||||||
|
|
||||||
|
RUN npm install --global serve && rm -rf "$(npm get cache)";
|
||||||
|
|
||||||
|
VOLUME [ "/srv" ]
|
||||||
|
|
||||||
|
USER 80:80
|
||||||
|
|
||||||
|
ENV NODE_ENV production
|
||||||
|
WORKDIR /srv
|
||||||
|
ENTRYPOINT [ "serve", "-l", "5000" ]
|
1
images/node-serve/type.txt
Normal file
1
images/node-serve/type.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docker
|
Loading…
Reference in a new issue