aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm32v7
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-05-25 15:07:03 -0700
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-05-25 15:07:03 -0700
commitb9c5fcf085bed9c6100283133531b36bfbb06cf0 (patch)
tree7baa4d16c9d6c06745727c7c273065a29b8fc1d7 /Dockerfile.arm32v7
parentab7ac44c191e3b7dea696e76b74097e23f73b18c (diff)
downloadhomer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.gz
homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.tar.zst
homer-b9c5fcf085bed9c6100283133531b36bfbb06cf0.zip
Build system integration using vue-cli.
Diffstat (limited to 'Dockerfile.arm32v7')
-rw-r--r--Dockerfile.arm32v715
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
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-arm-static && chmod +x qemu-arm-static 17RUN 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
7FROM arm32v7/alpine:3.11 20FROM arm32v7/alpine:3.11
8 21
9COPY --from=qemu qemu-arm-static /usr/bin/ 22COPY --from=qemu qemu-arm-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