Princeaka commited on
Commit
be12ec3
·
verified ·
1 Parent(s): a61db76

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -11,6 +11,7 @@ COPY frontend ./
11
  RUN npm run build
12
 
13
  # --- Backend Stage (FastAPI + Python) ---
 
14
  FROM python:3.11-bullseye
15
  WORKDIR /app
16
 
@@ -28,14 +29,9 @@ RUN apt-get update && \
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  # Copy requirements and install Python dependencies
31
- COPY requirements-small.txt ./requirements-small.txt
32
- # Only copy large if it exists
33
- COPY requirements-large.txt ./requirements-large.txt 2>/dev/null || true
34
-
35
  RUN pip install --upgrade pip
36
- RUN pip install --no-cache-dir -r requirements-small.txt
37
- # Install large requirements if file exists
38
- RUN [ -f requirements-large.txt ] && pip install --no-cache-dir -r requirements-large.txt || echo "No large requirements to install"
39
 
40
  # Copy backend code
41
  COPY backend ./backend
 
11
  RUN npm run build
12
 
13
  # --- Backend Stage (FastAPI + Python) ---
14
+ # Use full Debian image for compatibility with Python packages
15
  FROM python:3.11-bullseye
16
  WORKDIR /app
17
 
 
29
  && rm -rf /var/lib/apt/lists/*
30
 
31
  # Copy requirements and install Python dependencies
32
+ COPY requirements.txt ./
 
 
 
33
  RUN pip install --upgrade pip
34
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
35
 
36
  # Copy backend code
37
  COPY backend ./backend