Dockerfile 419 B

12345678910111213
  1. # For more information, please refer to https://aka.ms/vscode-docker-python
  2. FROM python:3.10-slim
  3. EXPOSE 5002
  4. ENV PYTHONDONTWRITEBYTECODE=1
  5. ENV PYTHONUNBUFFERED=1
  6. COPY requirements.txt .
  7. RUN python -m pip install -r requirements.txt
  8. WORKDIR /app
  9. COPY . /app
  10. RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
  11. USER appuser
  12. CMD ["gunicorn", "--bind", "0.0.0.0:5002", "back-end.app:app"]