diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-06-11 21:50:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 21:50:00 -0700 |
commit | cad54a560f77382d9584fd804f9cdd84c92012b7 (patch) | |
tree | 58f66b28a3fba8eb32d29b45022385f4734853ef /Dockerfile.arm64v8 | |
parent | a23914d573841f9088cc9cd69bce24c28f432acf (diff) | |
parent | e6596ca6eea8792cb6b1a6a2e1c48b8ed44093cd (diff) | |
download | homer-132942766.tar.gz homer-132942766.tar.zst homer-132942766.zip |
Merge pull request #84 from calvinbui/master132942766
Dockerfile Improvements
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 90d35f3..0175341 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -4,7 +4,7 @@ FROM node:lts-alpine as build-stage | |||
4 | WORKDIR /app | 4 | WORKDIR /app |
5 | 5 | ||
6 | COPY package*.json ./ | 6 | COPY package*.json ./ |
7 | RUN yarn install | 7 | RUN yarn install --frozen-lockfile |
8 | 8 | ||
9 | COPY . . | 9 | COPY . . |
10 | RUN yarn build | 10 | RUN yarn build |
@@ -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 |
@@ -31,6 +30,8 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & | |||
31 | apk add -U darkhttpd && \ | 30 | apk add -U darkhttpd && \ |
32 | rm /usr/bin/qemu-aarch64-static | 31 | rm /usr/bin/qemu-aarch64-static |
33 | 32 | ||
34 | USER darkhttpd | 33 | USER ${USER} |
34 | |||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | ||
35 | 36 | ||
36 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] | 37 | ENTRYPOINT ["darkhttpd","/www/","--no-listing"] |