Create Dockerfile

This commit is contained in:
2025-04-21 13:58:43 +02:00
parent 52025a55c2
commit 2ce2ff7cb4

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# Use an official base image
FROM python:3.11-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install system dependencies (optional)
RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# Copy dependency file(s)
COPY requirements.txt .
# Install Python dependencies
RUN pip install -r requirements.txt
# Copy project files
COPY . .
# Specify default command
CMD ["python", "app.py"]