authelia/Dockerfile

33 lines
664 B
Docker
Raw Normal View History

# ===================================
# ===== Authelia official image =====
# ===================================
FROM alpine:3.15.1
ARG TARGETOS
ARG TARGETARCH
WORKDIR /app
# Set environment variables
ENV PATH="/app:${PATH}" \
PUID=0 \
PGID=0
RUN \
apk --no-cache add ca-certificates su-exec tzdata
COPY LICENSE .healthcheck.env entrypoint.sh healthcheck.sh ./
RUN \
chmod 0666 /app/.healthcheck.env
2016-12-10 00:47:58 +00:00
COPY authelia-${TARGETOS}-${TARGETARCH}-musl ./authelia
EXPOSE 9091
2017-01-12 22:27:53 +00:00
VOLUME /config
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["--config", "/config/configuration.yml"]
HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh