RishitMishra commited on
Commit
4299be7
·
verified ·
1 Parent(s): 5120027

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,7 +1,12 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
@@ -11,3 +16,4 @@ EXPOSE 7860
11
 
12
  CMD ["python", "app.py"]
13
 
 
 
1
+ ROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install git + gcc (needed for some packages) + clean up after
6
+ RUN apt-get update && \
7
+ apt-get install -y git build-essential && \
8
+ apt-get clean && rm -rf /var/lib/apt/lists/*
9
+
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
16
 
17
  CMD ["python", "app.py"]
18
 
19
+