23 lines
279 B
Docker
23 lines
279 B
Docker
FROM python:bookworm
|
|
|
|
COPY requirements.txt /
|
|
|
|
RUN pip3 install --upgrade pip
|
|
|
|
RUN pip3 install -r /requirements.txt
|
|
|
|
|
|
|
|
COPY ./src /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
ENV POSTGRES_HOST=127.0.0.1
|
|
ENV POSTGRES_PORT=5432
|
|
|
|
CMD ["gunicorn","--config", "gunicorn_config.py", "app:app"]
|