From 38799bdb8bbc60791f8f9332252758c83d53715d Mon Sep 17 00:00:00 2001 From: phillip Date: Thu, 10 Jul 2025 21:17:37 +0200 Subject: [PATCH] =?UTF-8?q?Dockerfile=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e08d4f4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use Python 3.12 slim as base image +FROM python:3.12-slim + +# Set working directory +WORKDIR /app + +# Copy requirements.txt and install Python dependencies +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy frontend folder and install npm dependencies and build +COPY frontend ./frontend +WORKDIR /app/frontend +RUN npm install +RUN npm run build + +# Copy the rest of the app code +WORKDIR /app +COPY app ./app + +# Default command to run the app +CMD ["python", "app/app.py"]