aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm64v8
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r--Dockerfile.arm64v815
1 files changed, 14 insertions, 1 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index 48ce48e..90d35f3 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -1,13 +1,26 @@
1# build stage
2FROM node:lts-alpine as build-stage
3
4WORKDIR /app
5
6COPY package*.json ./
7RUN yarn install
8
9COPY . .
10RUN yarn build
11
12# Multi arch build support
1FROM alpine as qemu 13FROM alpine as qemu
2 14
3ARG QEMU_VERSION="v4.2.0-7" 15ARG QEMU_VERSION="v4.2.0-7"
4 16
5RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-aarch64-static && chmod +x qemu-aarch64-static 17RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-aarch64-static && chmod +x qemu-aarch64-static
6 18
19# production stage
7FROM arm64v8/alpine:3.11 20FROM arm64v8/alpine:3.11
8 21
9COPY --from=qemu qemu-aarch64-static /usr/bin/ 22COPY --from=qemu qemu-aarch64-static /usr/bin/
10COPY ./ /www/ 23COPY --from=build-stage /app/dist /www/
11 24
12ENV USER darkhttpd 25ENV USER darkhttpd
13ENV GROUP darkhttpd 26ENV GROUP darkhttpd