diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-05-30 23:22:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 23:22:02 -0700 |
commit | 5fa6b6cfa6b3010279ead23088add5c5664e8ac0 (patch) | |
tree | 5f3ffa4dc62b4355d38346ef0155878ca6aeedcd /Dockerfile.arm64v8 | |
parent | ab7ac44c191e3b7dea696e76b74097e23f73b18c (diff) | |
parent | 9052ec59b75a37b4518ad39c493ee6c2d4198b98 (diff) | |
download | homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.tar.gz homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.tar.zst homer-5fa6b6cfa6b3010279ead23088add5c5664e8ac0.zip |
Merge pull request #62 from bastienwirtz/dev/build-system120405250
Build system integration using vue-cli.
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 15 |
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 | ||
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-aarch64-static && chmod +x qemu-aarch64-static | 17 | RUN 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 | ||
7 | FROM arm64v8/alpine:3.11 | 20 | FROM arm64v8/alpine:3.11 |
8 | 21 | ||
9 | COPY --from=qemu qemu-aarch64-static /usr/bin/ | 22 | COPY --from=qemu qemu-aarch64-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 |