2 FROM node:lts-alpine as build-stage
7 RUN yarn install --frozen-lockfile
12 # Multi arch build support
15 ARG QEMU_VERSION="v4.2.0-7"
17 RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-arm-static && chmod +x qemu-arm-static
20 FROM arm32v7/alpine:3.11
22 COPY --from=qemu qemu-arm-static /usr/bin/
30 RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
31 apk add -U --no-cache darkhttpd su-exec && \
32 rm /usr/bin/qemu-arm-static
34 COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35 COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
36 COPY entrypoint.sh /entrypoint.sh
40 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]