aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 73519e0..cd3ab11 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,12 +21,10 @@ ENV PORT 8080
21RUN 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} && \
22 apk add -U darkhttpd 22 apk add -U darkhttpd
23 23
24RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
25RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
26
27USER ${USER}
28
29COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 24COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
25COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
30 26
27USER ${USER}
31EXPOSE ${PORT} 28EXPOSE ${PORT}
29VOLUME [ "/www/config.yml", "/www/assets" ]
32ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 30ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]