26 lines
373 B
Docker
Raw Permalink Normal View History

2024-01-28 01:20:50 +01:00
FROM python:bookworm
COPY requirements.txt /
RUN pip3 install --upgrade pip
RUN pip3 install -r /requirements.txt
COPY ./src /app
2024-02-11 18:24:43 +01:00
COPY ./web /web
2024-01-28 01:20:50 +01:00
WORKDIR /app
EXPOSE 8080
2024-01-28 22:33:42 +01:00
ENV POSTGRES_HOST=127.0.0.1
ENV POSTGRES_PORT=5432
ENV PYTHONUNBUFFERED=1
CMD ["gunicorn","--config", "gunicorn_config.py", "app:app", "--log-level", "debug", "--enable-stdio-inheritance"]