diff --git a/backend/Dockerfile b/backend/Dockerfile index 04dc5c4..6dc143b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -2,9 +2,9 @@ FROM python:3.12-slim WORKDIR /app -COPY backend/requirements.txt /app/ +COPY requirements.txt /app/ RUN pip install --no-cache-dir -r requirements.txt -COPY backend /app +COPY . /app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 55179a5..e2574a1 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,7 +1,7 @@ # Etap 1: Build Vue FROM node:20 AS build WORKDIR /app -COPY ./package*.json ./ +COPY package*.json ./ RUN npm install COPY . ./ RUN npm run build