diff options
Diffstat (limited to 'Dockerfile.arm64v8')
-rw-r--r-- | Dockerfile.arm64v8 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 69132a3..490a109 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 | |||
@@ -1,6 +1,12 @@ | |||
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-aarch64-static && chmod +x qemu-aarch64-static | ||
6 | |||
1 | FROM arm64v8/alpine:3.11 | 7 | FROM arm64v8/alpine:3.11 |
2 | COPY qemu-arm-static /usr/bin | ||
3 | 8 | ||
9 | COPY --from=qemu qemu-aarch64-static /usr/bin/ | ||
4 | COPY ./ /www/ | 10 | COPY ./ /www/ |
5 | 11 | ||
6 | ENV USER darkhttpd | 12 | ENV USER darkhttpd |
@@ -9,7 +15,8 @@ ENV GID 911 | |||
9 | ENV UID 911 | 15 | ENV UID 911 |
10 | 16 | ||
11 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | 17 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ |
12 | apk add -U darkhttpd | 18 | apk add -U darkhttpd && \ |
19 | rm /usr/bin/qemu-aarch64-static | ||
13 | 20 | ||
14 | USER darkhttpd | 21 | USER darkhttpd |
15 | 22 | ||