pflaenz.li/Dockerfile

22 lines
394 B
Docker
Raw Normal View History

2023-04-18 16:36:33 +02:00
FROM python:3.11-slim-bullseye
2023-04-07 10:58:28 +02:00
2023-05-17 12:37:59 +02:00
RUN apt update && apt install -y libpq-dev nginx gettext
2023-04-07 10:58:28 +02:00
ADD requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY pflaenzli /app
COPY entrypoint.sh /app
COPY default /etc/nginx/sites-enabled/default
WORKDIR /app
RUN chmod +x entrypoint.sh
RUN python3 manage.py collectstatic --no-input -c
2023-04-08 02:39:04 +02:00
EXPOSE 8888
2023-04-07 10:58:28 +02:00
ENTRYPOINT /app/entrypoint.sh