]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - Dockerfile.arm64v8
Fix multiarch docker build.
[github/bastienwirtz/homer.git] / Dockerfile.arm64v8
CommitLineData
525120de
BW
1FROM alpine AS builder
2
3# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
4ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz
5RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
6
abe6df52 7FROM arm64v8/alpine:3.11
525120de 8COPY qemu-arm-static /usr/bin
abe6df52
AZ
9
10COPY ./ /www/
11
12ENV USER darkhttpd
13ENV GROUP darkhttpd
14ENV GID 911
15ENV UID 911
16
17RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
18 apk add -U darkhttpd
19
20USER darkhttpd
21
22ENTRYPOINT ["darkhttpd","/www/"]