srrgan_telegram_bot / Dockerfile
kugogt's picture
Create Dockerfile
936b111 verified
raw
history blame contribute delete
461 Bytes
FROM python:3.9-slim
# This ENV var tells Debian-based images like this one to be non-interactive.
ENV DEBIAN_FRONTEND=noninteractive
# Set the working directory
WORKDIR /code
# Copy just the requirements file to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# This command will be run when the container starts
CMD ["python", "app.py"]