aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm64v8
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r--Dockerfile.arm64v87
1 files changed, 6 insertions, 1 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index 0175341..d9c8aab 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -25,13 +25,18 @@ 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-aarch64-static 32 rm /usr/bin/qemu-aarch64-static
32 33
34RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh
35RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh
36
33USER ${USER} 37USER ${USER}
34 38
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ 39COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
36 40
37ENTRYPOINT ["darkhttpd","/www/","--no-listing"] 41EXPOSE ${PORT}
42ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]