Commit 5402c072 authored by Gezer's avatar Gezer
Browse files

Fixed docker files so backend and frontend runs

on other pcs
No related merge requests found
Showing with 10 additions and 5 deletions
+10 -5
......@@ -18,11 +18,15 @@ RUN uv venv .venv && \
# Installiere die Abhängigkeiten aus pyproject.toml
RUN uv sync
# Kopiere den Rest des Projekts in den Container
# für Admin oberfläche
#RUN python manage.py createsuperuser
COPY . .
# Setze Umgebungsvariablen, falls nötig
ENV PYTHONUNBUFFERED=1
RUN .venv/bin/python manage.py migrate
# Kopiere den Rest des Projekts in den Container
# Exponiere Port 8000 (für Django)
EXPOSE 8000
......
......@@ -3,12 +3,13 @@
FROM node:latest
WORKDIR /app
# Nur lokale Abhängigkeiten, kein globales Vite!
# Nur package.json + lockfile kopieren
COPY package*.json ./
# Installiere ALLE Abhängigkeiten – inkl. vue-chartjs & chart.js
RUN npm install
# Jetzt den Rest des Projekts kopieren
COPY . .
EXPOSE 5173
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment