sksameermujahid commited on
Commit
a0e118e
·
verified ·
1 Parent(s): 140fe9f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -2,11 +2,20 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /code
4
 
 
 
 
 
 
 
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
  COPY ./app.py /code/app.py
7
  COPY ./templates /code/templates
8
  COPY ./models /code/models
9
 
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  EXPOSE 7860
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies including gcc and build tools
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
+ make \
10
+ git \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
  COPY ./requirements.txt /code/requirements.txt
14
  COPY ./app.py /code/app.py
15
  COPY ./templates /code/templates
16
  COPY ./models /code/models
17
 
18
+ # Install Python packages
19
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
20
 
21
  EXPOSE 7860