]> git.immae.eu Git - github/bastienwirtz/homer.git/blob - Dockerfile.arm32v7
Pure CSS font awesome icon
[github/bastienwirtz/homer.git] / Dockerfile.arm32v7
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
13 FROM alpine as qemu
14
15 ARG QEMU_VERSION="v4.2.0-7"
16
17 RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-arm-static && chmod +x qemu-arm-static
18
19 # production stage
20 FROM arm32v7/alpine:3.11
21
22 COPY --from=qemu qemu-arm-static /usr/bin/
23 COPY --from=build-stage /app/dist /www/
24
25 ENV USER darkhttpd
26 ENV GROUP darkhttpd
27 ENV GID 911
28 ENV UID 911
29
30 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
31 apk add -U darkhttpd && \
32 rm /usr/bin/qemu-arm-static
33
34 USER darkhttpd
35
36 ENTRYPOINT ["darkhttpd","/www/","--no-listing"]