aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-06-19 08:01:44 -0700
committerGitHub <noreply@github.com>2020-06-19 08:01:44 -0700
commit638dee77047993a56953285a5a85685a0e101c79 (patch)
tree908edca2f073eb3f486d02272c90176a6d41cd07 /Dockerfile
parentaac817970ce37f5991ae94c5c58ea2e1695420e2 (diff)
parent29d6b359abd243e9b4c026020bfc5d82bee88b12 (diff)
downloadhomer-140991098.tar.gz
homer-140991098.tar.zst
homer-140991098.zip
Merge pull request #87 from GlennToms/master140991098
Added ENV PORT options and EXPORT PORT
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 205d759..cd3ab11 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,12 +16,15 @@ 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
23USER ${USER}
24
25COPY --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
26 26
27ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file 27USER ${USER}
28EXPOSE ${PORT}
29VOLUME [ "/www/config.yml", "/www/assets" ]
30ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]