1cfe1aff13
* root: initial rename * web: rename custom element prefix * root: rename external functions with pb_ prefix * root: fix formatting * root: replace domain with goauthentik.io * proxy: update path * root: rename remaining prefixes * flows: rename file extension * root: pbadmin -> akadmin * docs: fix image filenames * lifecycle: ignore migration files * ci: copy default config from current source before loading last tagged * *: new sentry dsn * tests: fix missing python3.9-dev package * root: add additional migrations for service accounts created by outposts * core: mark system-created service accounts with attribute * policies/expression: fix pb_ replacement not working * web: fix last linting errors, add lit-analyse * policies/expressions: fix lint errors * web: fix sidebar display on screens where not all items fit * proxy: attempt to fix proxy pipeline * proxy: use go env GOPATH to get gopath * lib: fix user_default naming inconsistency * docs: add upgrade docs * docs: update screenshots to use authentik * admin: fix create button on empty-state of outpost * web: fix modal submit not refreshing SiteShell and Table * web: fix height of app-card and height of generic icon * web: fix rendering of subtext * admin: fix version check error not being caught * web: fix worker count not being shown * docs: update screenshots * root: new icon * web: fix lint error * admin: fix linting error * root: migrate coverage config to pyproject
48 lines
1.6 KiB
Docker
48 lines
1.6 KiB
Docker
FROM python:3.9-slim-buster as locker
|
|
|
|
COPY ./Pipfile /app/
|
|
COPY ./Pipfile.lock /app/
|
|
|
|
WORKDIR /app/
|
|
|
|
RUN pip install pipenv && \
|
|
pipenv lock -r > requirements.txt && \
|
|
pipenv lock -rd > requirements-dev.txt
|
|
|
|
FROM python:3.9-slim-buster
|
|
|
|
WORKDIR /
|
|
COPY --from=locker /app/requirements.txt /
|
|
COPY --from=locker /app/requirements-dev.txt /
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends curl ca-certificates gnupg && \
|
|
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
|
echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends postgresql-client-12 postgresql-client-11 build-essential libxmlsec1-dev pkg-config && \
|
|
apt-get clean && \
|
|
pip install -r /requirements.txt --no-cache-dir && \
|
|
apt-get remove --purge -y build-essential && \
|
|
apt-get autoremove --purge -y && \
|
|
# This is quite hacky, but docker has no guaranteed Group ID
|
|
# we could instead check for the GID of the socket and add the user dynamically,
|
|
# but then we have to drop permmissions later
|
|
groupadd -g 998 docker_998 && \
|
|
groupadd -g 999 docker_999 && \
|
|
adduser --system --no-create-home --uid 1000 --group --home /authentik authentik && \
|
|
usermod -a -G docker_998 authentik && \
|
|
usermod -a -G docker_999 authentik && \
|
|
mkdir /backups && \
|
|
chown authentik:authentik /backups
|
|
|
|
COPY ./authentik/ /authentik
|
|
COPY ./pytest.ini /
|
|
COPY ./manage.py /
|
|
COPY ./lifecycle/ /lifecycle
|
|
|
|
USER authentik
|
|
STOPSIGNAL SIGINT
|
|
ENV TMPDIR /dev/shm/
|
|
ENTRYPOINT [ "/lifecycle/bootstrap.sh" ]
|