16 lines
302 B
Docker
16 lines
302 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y gcc libpq-dev --no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
CMD ["gunicorn", "-b", "0.0.0.0:3000", "app:app"]
|