root: move root-dir in docker
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
b82a3fe252
commit
ee75357059
29
Dockerfile
29
Dockerfile
|
@ -120,7 +120,7 @@ LABEL org.opencontainers.image.source https://github.com/goauthentik/authentik
|
||||||
LABEL org.opencontainers.image.version ${VERSION}
|
LABEL org.opencontainers.image.version ${VERSION}
|
||||||
LABEL org.opencontainers.image.revision ${GIT_BUILD_HASH}
|
LABEL org.opencontainers.image.revision ${GIT_BUILD_HASH}
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /ak-root
|
||||||
|
|
||||||
# We cannot cache this layer otherwise we'll end up with a bigger image
|
# We cannot cache this layer otherwise we'll end up with a bigger image
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
@ -136,28 +136,29 @@ RUN apt-get update && \
|
||||||
mkdir -p /ak-root && \
|
mkdir -p /ak-root && \
|
||||||
chown authentik:authentik /certs /media /authentik/.ssh /ak-root
|
chown authentik:authentik /certs /media /authentik/.ssh /ak-root
|
||||||
|
|
||||||
COPY ./authentik/ /authentik
|
COPY ./authentik/ /ak-root/authentik
|
||||||
COPY ./pyproject.toml /
|
COPY ./pyproject.toml /ak-root
|
||||||
COPY ./poetry.lock /
|
COPY ./poetry.lock /ak-root
|
||||||
COPY ./schemas /schemas
|
COPY ./schemas /ak-root/schemas
|
||||||
COPY ./locale /locale
|
COPY ./locale /ak-root/locale
|
||||||
COPY ./tests /tests
|
COPY ./tests /ak-root/tests
|
||||||
COPY ./manage.py /
|
COPY ./manage.py /ak-root/
|
||||||
COPY ./blueprints /blueprints
|
COPY ./blueprints /blueprints
|
||||||
COPY ./lifecycle/ /lifecycle
|
COPY ./lifecycle/ /ak-root/lifecycle
|
||||||
COPY --from=go-builder /go/authentik /bin/authentik
|
COPY --from=go-builder /go/authentik /bin/authentik
|
||||||
COPY --from=python-deps /ak-root/venv /ak-root/venv
|
COPY --from=python-deps /ak-root/venv /ak-root/venv
|
||||||
COPY --from=web-builder /work/web/dist/ /web/dist/
|
COPY --from=python-deps /work/venv /ak-root/venv
|
||||||
COPY --from=web-builder /work/web/authentik/ /web/authentik/
|
COPY --from=web-builder /work/web/dist/ /ak-root/web/dist/
|
||||||
COPY --from=website-builder /work/website/help/ /website/help/
|
COPY --from=web-builder /work/web/authentik/ /ak-root/web/authentik/
|
||||||
COPY --from=geoip /usr/share/GeoIP /geoip
|
COPY --from=website-builder /work/website/help/ /ak-root/website/help/
|
||||||
|
COPY --from=geoip /usr/share/GeoIP /ak-root/geoip
|
||||||
|
|
||||||
USER 1000
|
USER 1000
|
||||||
|
|
||||||
ENV TMPDIR=/dev/shm/ \
|
ENV TMPDIR=/dev/shm/ \
|
||||||
PYTHONDONTWRITEBYTECODE=1 \
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
PATH="/ak-root/venv/bin:/lifecycle:$PATH" \
|
PATH="/ak-root/venv/bin:/ak-root/lifecycle:$PATH" \
|
||||||
VENV_PATH="/ak-root/venv" \
|
VENV_PATH="/ak-root/venv" \
|
||||||
POETRY_VIRTUALENVS_CREATE=false
|
POETRY_VIRTUALENVS_CREATE=false
|
||||||
|
|
||||||
|
|
|
@ -110,8 +110,8 @@ disable_startup_analytics: false
|
||||||
avatars: env://AUTHENTIK_AUTHENTIK__AVATARS?gravatar,initials
|
avatars: env://AUTHENTIK_AUTHENTIK__AVATARS?gravatar,initials
|
||||||
events:
|
events:
|
||||||
context_processors:
|
context_processors:
|
||||||
geoip: "/geoip/GeoLite2-City.mmdb"
|
geoip: "/ak-root/geoip/GeoLite2-City.mmdb"
|
||||||
asn: "/geoip/GeoLite2-ASN.mmdb"
|
asn: "/ak-root/geoip/GeoLite2-ASN.mmdb"
|
||||||
|
|
||||||
footer_links: []
|
footer_links: []
|
||||||
|
|
||||||
|
|
Reference in New Issue