]> git.immae.eu Git - github/bastienwirtz/homer.git/blame_incremental - Dockerfile.arm64v8
Merge branch 'master' into fix-docker-multiarch-builds
[github/bastienwirtz/homer.git] / Dockerfile.arm64v8
... / ...
CommitLineData
1FROM alpine as qemu
2
3ARG QEMU_VERSION "v4.2.0-7"
4
5RUN wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/qemu-aarch64-static && chmod +x qemu-aarch64-static
6
7FROM arm64v8/alpine:3.11
8COPY qemu-arm-static /usr/bin
9
10COPY --from=qemu qemu-aarch64-static /usr/bin/
11COPY ./ /www/
12
13ENV USER darkhttpd
14ENV GROUP darkhttpd
15ENV GID 911
16ENV UID 911
17
18RUN 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
22USER darkhttpd
23
24ENTRYPOINT ["darkhttpd","/www/"]