This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/Dockerfile

35 lines
963 B
Docker
Raw Normal View History

FROM python:3.6-slim-stretch as build
COPY ./passbook/ /app/passbook
COPY ./manage.py /app/
COPY ./requirements.txt /app/
WORKDIR /app/
2019-02-27 16:43:24 +00:00
RUN apt-get update && apt-get install build-essential libssl-dev libffi-dev -y && \
mkdir /app/static/ && \
pip install -r requirements.txt && \
pip install psycopg2 && \
2019-02-27 16:43:24 +00:00
./manage.py collectstatic --no-input && \
apt-get remove --purge -y build-essential && \
apt-get autoremove --purge -y
2019-02-08 13:57:16 +00:00
FROM python:3.6-slim-stretch
COPY ./passbook/ /app/passbook
COPY ./manage.py /app/
COPY ./requirements.txt /app/
COPY --from=build /app/static /app/static/
2019-02-08 13:57:16 +00:00
WORKDIR /app/
2019-02-27 16:43:24 +00:00
RUN apt-get update && apt-get install build-essential libssl-dev libffi-dev -y && \
pip install -r requirements.txt && \
2019-02-08 13:57:16 +00:00
pip install psycopg2 && \
adduser --system --home /app/ passbook && \
2019-02-27 16:43:24 +00:00
chown -R passbook /app/ && \
apt-get remove --purge -y build-essential && \
apt-get autoremove --purge -y
2019-02-08 13:57:16 +00:00
USER passbook