Dockerfile hinzugefügt

This commit is contained in:
2025-07-10 21:17:37 +02:00
parent 6dedd0a02c
commit 38799bdb8b
+22
View File
@@ -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"]