21 lines
394 B
Docker
21 lines
394 B
Docker
FROM python:3.11-slim-bullseye
|
|
|
|
RUN apt update && apt install -y libpq-dev nginx gettext
|
|
|
|
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
|
|
|
|
EXPOSE 8888
|
|
|
|
ENTRYPOINT /app/entrypoint.sh
|