Dateien nach "/" hochladen

This commit is contained in:
2026-09-07 08:19:41 +02:00
parent cfb0ba7af1
commit b9750b7fb0
4 changed files with 118 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM python:3.11-slim
WORKDIR /app
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY backend/main.py .
COPY static ./static
# Data directories inside the container (bind-mounted/volumed at runtime,
# but created here so the app also works without an explicit mount).
RUN mkdir -p /data/projects /data/settings
ENV PROJECTS_DIR=/data/projects
EXPOSE 8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]