aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 205d759..73519e0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,12 +16,17 @@ ENV USER darkhttpd
16ENV GROUP darkhttpd 16ENV GROUP darkhttpd
17ENV GID 911 17ENV GID 911
18ENV UID 911 18ENV UID 911
19ENV PORT 8080
19 20
20RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 21RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
21 apk add -U darkhttpd 22 apk add -U darkhttpd
22 23
24RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
25RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
26
23USER ${USER} 27USER ${USER}
24 28
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
26 30
27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file 31EXPOSE ${PORT}
32ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]