aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile.arm32v7
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile.arm32v7')
-rw-r--r--Dockerfile.arm32v749
1 files changed, 0 insertions, 49 deletions
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
deleted file mode 100644
index 270d7b5..0000000
--- a/Dockerfile.arm32v7
+++ /dev/null
@@ -1,49 +0,0 @@
1# build stage
2FROM node:lts-alpine as build-stage
3
4WORKDIR /app
5
6COPY package*.json ./
7RUN yarn install --frozen-lockfile
8
9COPY . .
10RUN yarn build
11
12# Multi arch build support
13FROM alpine as qemu
14
15ARG QEMU_VERSION="v4.2.0-7"
16
17RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-arm-static && chmod +x qemu-arm-static
18
19# production stage
20FROM arm32v7/alpine:3.16
21
22COPY --from=qemu qemu-arm-static /usr/bin/
23
24ENV GID 1000
25ENV UID 1000
26ENV PORT 8080
27ENV SUBFOLDER "/_"
28ENV INIT_ASSETS 1
29
30RUN addgroup -S lighttpd -g ${GID} && adduser -D -S -u ${UID} lighttpd lighttpd && \
31 apk add -U --no-cache lighttpd && \
32 rm /usr/bin/qemu-arm-static
33
34WORKDIR /www
35
36COPY lighttpd.conf /lighttpd.conf
37COPY entrypoint.sh /entrypoint.sh
38COPY --from=build-stage --chown=${UID}:${GID} /app/dist /www/
39COPY --from=build-stage --chown=${UID}:${GID} /app/dist/assets /www/default-assets
40
41USER ${UID}:${GID}
42
43HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
44 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
45
46EXPOSE ${PORT}
47VOLUME /www/assets
48
49CMD ["lighttpd", "-D", "-f", "/lighttpd.conf"]