26 lines
373 B
Docker
26 lines
373 B
Docker
FROM python:bookworm
|
|
|
|
COPY requirements.txt /
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
RUN pip3 install -r /requirements.txt
|
|
|
|
|
|
|
|
COPY ./src /app
|
|
COPY ./web /web
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
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"]
|