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

Fixed docker files so backend and frontend runs

on other pcs
parent b805c892
Showing with 10 additions and 5 deletions
+10 -5
...@@ -18,11 +18,15 @@ RUN uv venv .venv && \ ...@@ -18,11 +18,15 @@ RUN uv venv .venv && \
# Installiere die Abhängigkeiten aus pyproject.toml # Installiere die Abhängigkeiten aus pyproject.toml
RUN uv sync RUN uv sync
# Kopiere den Rest des Projekts in den Container # für Admin oberfläche
#RUN python manage.py createsuperuser
COPY . . COPY . .
# Setze Umgebungsvariablen, falls nötig RUN .venv/bin/python manage.py migrate
ENV PYTHONUNBUFFERED=1
# Kopiere den Rest des Projekts in den Container
# Exponiere Port 8000 (für Django) # Exponiere Port 8000 (für Django)
EXPOSE 8000 EXPOSE 8000
......
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
FROM node:latest FROM node:latest
WORKDIR /app WORKDIR /app
# Nur lokale Abhängigkeiten, kein globales Vite! # Nur package.json + lockfile kopieren
COPY package*.json ./ COPY package*.json ./
# Installiere ALLE Abhängigkeiten – inkl. vue-chartjs & chart.js
RUN npm install RUN npm install
# Jetzt den Rest des Projekts kopieren
COPY . . COPY . .
EXPOSE 5173 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