aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm64v8
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r--Dockerfile.arm64v87
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
4WORKDIR /app 4WORKDIR /app
5 5
6COPY package*.json ./ 6COPY package*.json ./
7RUN yarn install 7RUN yarn install --frozen-lockfile
8 8
9COPY . . 9COPY . .
10RUN yarn build 10RUN yarn build
@@ -20,7 +20,6 @@ RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_
20FROM arm64v8/alpine:3.11 20FROM arm64v8/alpine:3.11
21 21
22COPY --from=qemu qemu-aarch64-static /usr/bin/ 22COPY --from=qemu qemu-aarch64-static /usr/bin/
23COPY --from=build-stage /app/dist /www/
24 23
25ENV USER darkhttpd 24ENV USER darkhttpd
26ENV GROUP darkhttpd 25ENV 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
34USER darkhttpd 33USER ${USER}
34
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35 36
36ENTRYPOINT ["darkhttpd","/www/","--no-listing"] 37ENTRYPOINT ["darkhttpd","/www/","--no-listing"]