From 2ce2ff7cb4f6588525ee9efb82834a834e7395ca Mon Sep 17 00:00:00 2001 From: Stef Date: Mon, 21 Apr 2025 13:58:43 +0200 Subject: [PATCH] Create Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..432ee2f --- /dev/null +++ b/Dockerfile @@ -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"]