mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-12-27 09:09:08 +01:00
23 lines
582 B
Docker
23 lines
582 B
Docker
FROM alpine AS builder
|
|
|
|
# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
|
|
ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz
|
|
RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
|
|
|
|
FROM arm64v8/alpine:3.11
|
|
COPY qemu-arm-static /usr/bin
|
|
|
|
COPY ./ /www/
|
|
|
|
ENV USER darkhttpd
|
|
ENV GROUP darkhttpd
|
|
ENV GID 911
|
|
ENV UID 911
|
|
|
|
RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} && \
|
|
apk add -U darkhttpd
|
|
|
|
USER darkhttpd
|
|
|
|
ENTRYPOINT ["darkhttpd","/www/"]
|