Dockerfile 314 B

1234567891011121314151617
  1. FROM python:3.12-slim
  2. ENV PYTHONDONTWRITEBYTECODE=1 \
  3. PYTHONUNBUFFERED=1 \
  4. PIP_NO_CACHE_DIR=1
  5. WORKDIR /app
  6. COPY requirements.txt ./
  7. RUN python -m pip install --upgrade pip \
  8. && python -m pip install --no-cache-dir -r requirements.txt
  9. COPY . .
  10. EXPOSE 5000
  11. CMD ["uwsgi", "--ini", "/app/uwsgi.ini"]