diff options
-rw-r--r-- | Dockerfile | 7 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 7 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 7 |
3 files changed, 18 insertions, 3 deletions
@@ -16,12 +16,17 @@ ENV USER darkhttpd | |||
16 | ENV GROUP darkhttpd | 16 | ENV GROUP darkhttpd |
17 | ENV GID 911 | 17 | ENV GID 911 |
18 | ENV UID 911 | 18 | ENV UID 911 |
19 | ENV PORT 8080 | ||
19 | 20 | ||
20 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 21 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
21 | apk add -U darkhttpd | 22 | apk add -U darkhttpd |
22 | 23 | ||
24 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
25 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
26 | |||
23 | USER ${USER} | 27 | USER ${USER} |
24 | 28 | ||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 29 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
26 | 30 | ||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 31 | EXPOSE ${PORT} |
32 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 7664f66..952ecb7 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 | |||
@@ -25,13 +25,18 @@ ENV USER darkhttpd | |||
25 | ENV GROUP darkhttpd | 25 | ENV GROUP darkhttpd |
26 | ENV GID 911 | 26 | ENV GID 911 |
27 | ENV UID 911 | 27 | ENV UID 911 |
28 | ENV PORT 8080 | ||
28 | 29 | ||
29 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 30 | RUN 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 | ||
34 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
35 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
36 | |||
33 | USER ${USER} | 37 | USER ${USER} |
34 | 38 | ||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 39 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
36 | 40 | ||
37 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 41 | EXPOSE ${PORT} |
42 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||
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 | |||
25 | ENV GROUP darkhttpd | 25 | ENV GROUP darkhttpd |
26 | ENV GID 911 | 26 | ENV GID 911 |
27 | ENV UID 911 | 27 | ENV UID 911 |
28 | ENV PORT 8080 | ||
28 | 29 | ||
29 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 30 | RUN 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 | ||
34 | RUN echo "darkhttpd /www/ --no-listing --port $PORT" > /entrypoint.sh | ||
35 | RUN set -ex chown ${USER}:${GROUP} /entrypoint.sh | ||
36 | |||
33 | USER ${USER} | 37 | USER ${USER} |
34 | 38 | ||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | 39 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ |
36 | 40 | ||
37 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 41 | EXPOSE ${PORT} |
42 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | ||