X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile.arm64v8;h=90d35f355f7b4c176759ae24784685c2118f2f76;hb=9d25f392ec733d24734c70f29dd7cebe283a05d4;hp=48ce48ed717a2595cc0839d78ebca72d1d8916d7;hpb=0d6a177bae29d74c9e91569947bcb48977c8e03d;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 48ce48e..90d35f3 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 @@ -1,13 +1,26 @@ +# build stage +FROM node:lts-alpine as build-stage + +WORKDIR /app + +COPY package*.json ./ +RUN yarn install + +COPY . . +RUN yarn build + +# Multi arch build support FROM alpine as qemu ARG QEMU_VERSION="v4.2.0-7" RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-aarch64-static && chmod +x qemu-aarch64-static +# production stage FROM arm64v8/alpine:3.11 COPY --from=qemu qemu-aarch64-static /usr/bin/ -COPY ./ /www/ +COPY --from=build-stage /app/dist /www/ ENV USER darkhttpd ENV GROUP darkhttpd