17 lines
311 B
Docker
17 lines
311 B
Docker
FROM python:3.13-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt gunicorn
|
|
|
|
COPY . .
|
|
|
|
RUN addgroup --system app && adduser --system --ingroup app app && \
|
|
chown -R app:app /app
|
|
USER app
|
|
|
|
EXPOSE 5005
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:5005", "-w", "4", "app:app"]
|