mirror of https://github.com/authelia/authelia.git
31 lines
733 B
Docker
31 lines
733 B
Docker
# ===================================
|
|
# ===== Authelia official image =====
|
|
# ===================================
|
|
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
WORKDIR /app
|
|
|
|
# Set environment variables
|
|
ENV PATH="/app:${PATH}" \
|
|
PUID=0 \
|
|
PGID=0 \
|
|
X_AUTHELIA_CONFIG="/config/configuration.yml"
|
|
|
|
RUN \
|
|
apk --no-cache add ca-certificates su-exec tzdata wget
|
|
|
|
COPY LICENSE .healthcheck.env entrypoint.sh healthcheck.sh ./
|
|
|
|
RUN \
|
|
chmod 0666 /app/.healthcheck.env
|
|
|
|
COPY authelia-${TARGETOS}-${TARGETARCH}-musl ./authelia
|
|
|
|
EXPOSE 9091
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh
|