petter2025 commited on
Commit
f4308a7
·
verified ·
1 Parent(s): 7ab5fab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
  FROM python:3.10.16-slim
2
 
3
- # Verify Python version (will appear in build logs)
 
 
 
 
 
4
  RUN python --version
5
 
6
  WORKDIR /app
7
 
8
  COPY requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
 
10
 
11
  COPY . .
12
 
 
1
  FROM python:3.10.16-slim
2
 
3
+ # Install git and other build dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Verify Python version
9
  RUN python --version
10
 
11
  WORKDIR /app
12
 
13
  COPY requirements.txt .
14
+ RUN pip install --no-cache-dir --upgrade pip && \
15
+ pip install --no-cache-dir -r requirements.txt
16
 
17
  COPY . .
18