diff options
Diffstat (limited to 'Dockerfile.arm32v7')
-rw-r--r-- | Dockerfile.arm32v7 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 new file mode 100644 index 0000000..3b18243 --- /dev/null +++ b/Dockerfile.arm32v7 | |||
@@ -0,0 +1,23 @@ | |||
1 | FROM alpine as qemu | ||
2 | |||
3 | ARG QEMU_VERSION="v4.2.0-7" | ||
4 | |||
5 | RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-arm-static && chmod +x qemu-arm-static | ||
6 | |||
7 | FROM arm32v7/alpine:3.11 | ||
8 | |||
9 | COPY --from=qemu qemu-arm-static /usr/bin/ | ||
10 | COPY ./ /www/ | ||
11 | |||
12 | ENV USER darkhttpd | ||
13 | ENV GROUP darkhttpd | ||
14 | ENV GID 911 | ||
15 | ENV UID 911 | ||
16 | |||
17 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | ||
18 | apk add -U darkhttpd && \ | ||
19 | rm /usr/bin/qemu-arm-static | ||
20 | |||
21 | USER darkhttpd | ||
22 | |||
23 | ENTRYPOINT ["darkhttpd","/www/"] | ||