Fix config path, env secrets, and align API calls
This commit is contained in:
+3
-1
@@ -15,7 +15,8 @@ COPY backend/util ./backend/util
|
||||
COPY backend/auth ./backend/auth
|
||||
COPY backend/tools ./backend/tools
|
||||
COPY backend/templates ./backend/templates
|
||||
COPY backend/config ./config
|
||||
# Store DB config in a docker-friendly location (/config), override via DB_CONFIG_PATH env if needed
|
||||
COPY backend/config /config
|
||||
COPY backend/requirements.txt ./requirements.txt
|
||||
|
||||
# Frontend aus Build-Stage übernehmen
|
||||
@@ -27,5 +28,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Flask starten
|
||||
WORKDIR /app/backend
|
||||
ENV PYTHONPATH=/app/backend
|
||||
ENV DB_CONFIG_PATH=/config/db_config.json
|
||||
EXPOSE 5000
|
||||
CMD ["python", "app.py"]
|
||||
|
||||
Reference in New Issue
Block a user