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