diff options
author | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-18 15:46:33 +0100 |
---|---|---|
committer | Glenn Toms <Glenn@glenntoms.gg> | 2020-06-18 15:46:33 +0100 |
commit | 29d6b359abd243e9b4c026020bfc5d82bee88b12 (patch) | |
tree | 908edca2f073eb3f486d02272c90176a6d41cd07 /Dockerfile.arm64v8 | |
parent | 5f71d1ea01c54a79fb8f459f8acbe92b0ea99c61 (diff) | |
download | homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.gz homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.tar.zst homer-29d6b359abd243e9b4c026020bfc5d82bee88b12.zip |
Added entrypoint script and Dockerfile port&volume
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index d9c8aab..7899027 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -31,12 +31,10 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
31 | apk add -U darkhttpd && \ | 31 | apk add -U darkhttpd && \ |
32 | rm /usr/bin/qemu-aarch64-static | 32 | rm /usr/bin/qemu-aarch64-static |
33 | 33 | ||
34 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
35 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
36 | |||
37 | USER ${USER} | ||
38 | |||
39 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 34 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
35 | COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh | ||
40 | 36 | ||
37 | USER ${USER} | ||
41 | EXPOSE ${PORT} | 38 | EXPOSE ${PORT} |
39 | VOLUME [ "/www/config.yml", "/www/assets" ] | ||
42 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 40 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |