Dockerfile.dev 406 B

12345678910111213141516171819
  1. FROM python:3.9.16-slim
  2. RUN apt-get update -y \
  3. && apt-get upgrade -y \
  4. && apt-get install git -y \
  5. && apt-get install sqlite3 -y
  6. # Keeps Python from generating .pyc files in the container
  7. ENV PYTHONDONTWRITEBYTECODE=1
  8. # Turns off buffering for easier container logging
  9. ENV PYTHONUNBUFFERED=1
  10. COPY requirements.txt .
  11. RUN python -m pip install -r requirements.txt
  12. WORKDIR /app
  13. CMD ["python", "app.py"]