ahmedzein commited on
Commit
11194ef
·
verified ·
1 Parent(s): e896c97

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -1,18 +1,13 @@
1
  # Use the official Python 3.10.9 image
2
- FROM python:3.10.9
3
 
4
- ENV TRANSFORMERS_CACHE=./cache/
5
- ENV HF_HOME=./cache/
6
 
7
- WORKDIR /code
8
 
9
- # Copy the current directory contents into the container at .
10
- COPY requirements.txt .
11
 
12
- # Set the working directory to /
13
-
14
- # Install requirements.txt
15
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
  COPY . .
18
 
 
1
  # Use the official Python 3.10.9 image
2
+ FROM python
3
 
4
+ WORKDIR /usr/src/app
 
5
 
6
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx
7
 
8
+ COPY requirements.txt ./
 
9
 
10
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
11
 
12
  COPY . .
13