2019-11-01 18:31:51 +00:00
|
|
|
# ===================================
|
|
|
|
# ===== Authelia official image =====
|
|
|
|
# ===================================
|
2023-06-14 22:39:12 +00:00
|
|
|
FROM alpine:3.18.2
|
2019-11-01 18:31:51 +00:00
|
|
|
|
2021-09-16 12:39:18 +00:00
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
2020-10-19 00:24:24 +00:00
|
|
|
WORKDIR /app
|
2019-11-01 18:31:51 +00:00
|
|
|
|
2021-09-16 12:39:18 +00:00
|
|
|
# Set environment variables
|
|
|
|
ENV PATH="/app:${PATH}" \
|
|
|
|
PUID=0 \
|
2022-12-23 00:03:50 +00:00
|
|
|
PGID=0 \
|
|
|
|
X_AUTHELIA_CONFIG="/config/configuration.yml"
|
2021-09-16 12:39:18 +00:00
|
|
|
|
|
|
|
RUN \
|
2022-12-23 00:03:50 +00:00
|
|
|
apk --no-cache add ca-certificates su-exec tzdata
|
2021-09-16 12:39:18 +00:00
|
|
|
|
|
|
|
COPY LICENSE .healthcheck.env entrypoint.sh healthcheck.sh ./
|
|
|
|
|
|
|
|
RUN \
|
2022-12-23 00:03:50 +00:00
|
|
|
chmod 0666 /app/.healthcheck.env
|
2016-12-10 00:47:58 +00:00
|
|
|
|
2021-09-26 02:08:47 +00:00
|
|
|
COPY authelia-${TARGETOS}-${TARGETARCH}-musl ./authelia
|
2016-12-17 18:36:41 +00:00
|
|
|
|
2019-01-30 15:47:03 +00:00
|
|
|
EXPOSE 9091
|
2017-01-12 22:27:53 +00:00
|
|
|
|
2020-06-17 06:25:35 +00:00
|
|
|
VOLUME /config
|
2017-01-21 19:24:35 +00:00
|
|
|
|
2021-06-06 04:46:31 +00:00
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh
|