]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - Dockerfile.arm32v7
Merge pull request #56 from nightah/fix-docker-multiarch-builds
[github/bastienwirtz/homer.git] / Dockerfile.arm32v7
CommitLineData
5a5412c5
AZ
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-arm-static && chmod +x qemu-arm-static
6
abe6df52 7FROM arm32v7/alpine:3.11
525120de 8COPY --from=builder qemu-aarch64-static /usr/bin
abe6df52 9
5a5412c5 10COPY --from=qemu qemu-arm-static /usr/bin/
abe6df52
AZ
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} && \
5a5412c5
AZ
19 apk add -U darkhttpd && \
20 rm /usr/bin/qemu-arm-static
abe6df52
AZ
21
22USER darkhttpd
23
24ENTRYPOINT ["darkhttpd","/www/"]