Dateien nach "/" hochladen
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user