AyushAggarwal commited on
Commit
62ef4a6
·
verified ·
1 Parent(s): c6a6e5e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,18 +1,26 @@
 
1
  FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Copy requirements
 
 
 
 
 
6
  COPY backend/requirements.txt backend/requirements.txt
7
  COPY frontend/requirements.txt frontend/requirements.txt
8
 
9
- # Install dependencies
10
  RUN pip install --no-cache-dir -r backend/requirements.txt -r frontend/requirements.txt
11
 
12
  # Copy source
13
  COPY backend backend
14
  COPY frontend frontend
15
  COPY start.sh start.sh
 
 
16
  RUN chmod +x start.sh
17
 
18
- CMD ["./start.sh"]
 
 
1
+ # Dockerfile — minimal, reliable
2
  FROM python:3.11-slim
3
 
4
  WORKDIR /app
5
 
6
+ # Install tiny set of system deps needed by some wheels (kept minimal)
7
+ RUN apt-get update && \
8
+ apt-get install -y --no-install-recommends build-essential ca-certificates && \
9
+ rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy requirements and install
12
  COPY backend/requirements.txt backend/requirements.txt
13
  COPY frontend/requirements.txt frontend/requirements.txt
14
 
 
15
  RUN pip install --no-cache-dir -r backend/requirements.txt -r frontend/requirements.txt
16
 
17
  # Copy source
18
  COPY backend backend
19
  COPY frontend frontend
20
  COPY start.sh start.sh
21
+
22
+ # Ensure start script is executable in the image
23
  RUN chmod +x start.sh
24
 
25
+ # Entrypoint
26
+ CMD ["./start.sh"]