aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorGlenn Toms <Glenn@glenntoms.gg>2020-06-18 15:46:33 +0100
committerGlenn Toms <Glenn@glenntoms.gg>2020-06-18 15:46:33 +0100
commit29d6b359abd243e9b4c026020bfc5d82bee88b12 (patch)
tree908edca2f073eb3f486d02272c90176a6d41cd07 /Dockerfile
parent5f71d1ea01c54a79fb8f459f8acbe92b0ea99c61 (diff)
downloadhomer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.gz
homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.zst
homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.zip
Added entrypoint script and Dockerfile port&volume
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"]