aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm32v7
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.arm32v7
parentaac817970ce37f5991ae94c5c58ea2e1695420e2 (diff)
parent29d6b359abd243e9b4c026020bfc5d82bee88b12 (diff)
downloadhomer-638dee77047993a56953285a5a85685a0e101c79.tar.gz
homer-638dee77047993a56953285a5a85685a0e101c79.tar.zst
homer-638dee77047993a56953285a5a85685a0e101c79.zip
Merge pull request #87 from GlennToms/master140991098
Added ENV PORT options and EXPORT PORT
Diffstat (limited to 'Dockerfile.arm32v7')
-rw-r--r--Dockerfile.arm32v79
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
index 7664f66..ef01d1f 100644
--- a/Dockerfile.arm32v7
+++ b/Dockerfile.arm32v7
@@ -25,13 +25,16 @@ ENV USER darkhttpd
25ENV GROUP darkhttpd 25ENV GROUP darkhttpd
26ENV GID 911 26ENV GID 911
27ENV UID 911 27ENV UID 911
28ENV PORT 8080
28 29
29RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ 30RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
30 apk add -U darkhttpd && \ 31 apk add -U darkhttpd && \
31 rm /usr/bin/qemu-arm-static 32 rm /usr/bin/qemu-arm-static
32 33
33USER ${USER}
34
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 34COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh
36 36
37ENTRYPOINT ["darkhttpd","/www/","--no-listing"] 37USER ${USER}
38EXPOSE ${PORT}
39VOLUME [ "/www/config.yml", "/www/assets" ]
40ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]