]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | FROM arm64v8/alpine:3.11 | |
8 | COPY qemu-arm-static /usr/bin | |
9 | ||
10 | COPY --from=qemu qemu-aarch64-static /usr/bin/ | |
11 | COPY ./ /www/ | |
12 | ||
13 | ENV USER darkhttpd | |
14 | ENV GROUP darkhttpd | |
15 | ENV GID 911 | |
16 | ENV UID 911 | |
17 | ||
18 | RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \ | |
19 | apk add -U darkhttpd && \ | |
20 | rm /usr/bin/qemu-aarch64-static | |
21 | ||
22 | USER darkhttpd | |
23 | ||
24 | ENTRYPOINT ["darkhttpd","/www/"] |