mirror of
https://github.com/authelia/authelia.git
synced 2026-10-28 09:34:52 +08:00
32 lines
664 B
Docker
32 lines
664 B
Docker
# SPDX-FileCopyrightText: 2026 Authelia
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# ===================================
|
|
# ===== Authelia official image =====
|
|
# ===================================
|
|
ARG TAG
|
|
ARG SHA
|
|
|
|
FROM authelia/base:${TAG}@sha256:${SHA}
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
WORKDIR /app
|
|
|
|
ENV \
|
|
PATH="/app:${PATH}" \
|
|
PUID=0 \
|
|
PGID=0 \
|
|
X_AUTHELIA_CONFIG="/config/configuration.yml"
|
|
|
|
COPY --link authelia-${TARGETOS}-${TARGETARCH}/authelia LICENSE entrypoint.sh healthcheck.sh ./
|
|
|
|
COPY --link --chmod=666 .healthcheck.env ./
|
|
|
|
EXPOSE 9091
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh
|