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