8 lines
364 B
Docker
8 lines
364 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
RUN apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev && rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY app/ .
|
|
CMD ["gunicorn","--bind","0.0.0.0:5000","--workers","2","--threads","4","app:app"]
|