diff options
-rw-r--r-- | Dockerfile | 4 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 3 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 3 |
3 files changed, 6 insertions, 4 deletions
@@ -12,8 +12,6 @@ RUN yarn build | |||
12 | # production stage | 12 | # production stage |
13 | FROM alpine:3.11 | 13 | FROM alpine:3.11 |
14 | 14 | ||
15 | COPY --from=build-stage /app/dist /www/ | ||
16 | |||
17 | ENV USER darkhttpd | 15 | ENV USER darkhttpd |
18 | ENV GROUP darkhttpd | 16 | ENV GROUP darkhttpd |
19 | ENV GID 911 | 17 | ENV GID 911 |
@@ -24,4 +22,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
24 | 22 | ||
25 | USER ${USER} | 23 | USER ${USER} |
26 | 24 | ||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
26 | |||
27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file | 27 | ENTRYPOINT ["darkhttpd","/www/", "--no-listing"] \ No newline at end of file |
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 0b83a06..d1ef138 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 | |||
@@ -20,7 +20,6 @@ RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_ | |||
20 | FROM arm32v7/alpine:3.11 | 20 | FROM arm32v7/alpine:3.11 |
21 | 21 | ||
22 | COPY --from=qemu qemu-arm-static /usr/bin/ | 22 | COPY --from=qemu qemu-arm-static /usr/bin/ |
23 | COPY --from=build-stage /app/dist /www/ | ||
24 | 23 | ||
25 | ENV USER darkhttpd | 24 | ENV USER darkhttpd |
26 | ENV GROUP darkhttpd | 25 | ENV GROUP darkhttpd |
@@ -33,4 +32,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
33 | 32 | ||
34 | USER ${USER} | 33 | USER ${USER} |
35 | 34 | ||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
36 | |||
36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 37 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] |
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index c007d04..2f26d09 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -20,7 +20,6 @@ RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_ | |||
20 | FROM arm64v8/alpine:3.11 | 20 | FROM arm64v8/alpine:3.11 |
21 | 21 | ||
22 | COPY --from=qemu qemu-aarch64-static /usr/bin/ | 22 | COPY --from=qemu qemu-aarch64-static /usr/bin/ |
23 | COPY --from=build-stage /app/dist /www/ | ||
24 | 23 | ||
25 | ENV USER darkhttpd | 24 | ENV USER darkhttpd |
26 | ENV GROUP darkhttpd | 25 | ENV GROUP darkhttpd |
@@ -33,4 +32,6 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
33 | 32 | ||
34 | USER ${USER} | 33 | USER ${USER} |
35 | 34 | ||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
36 | |||
36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 37 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] |