2019-11-01 18:31:51 +00:00
|
|
|
# ===================================
|
|
|
|
# ===== Authelia official image =====
|
|
|
|
# ===================================
|
2022-03-17 04:53:30 +00:00
|
|
|
FROM alpine:3.15.1
|
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 \
|
|
|
|
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
|
|
|
|
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"]
|
2020-10-18 23:12:21 +00:00
|
|
|
CMD ["--config", "/config/configuration.yml"]
|
2021-06-06 04:46:31 +00:00
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh
|