mac9087 commited on
Commit
8ab500d
·
verified ·
1 Parent(s): 027689c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -27,16 +27,16 @@ RUN apt-get update && apt-get install -y \
27
  RUN mkdir -p /tmp/uploads /tmp/results /tmp/huggingface/transformers /tmp/huggingface/datasets \
28
  && chmod -R 777 /tmp/uploads /tmp/results /tmp/huggingface
29
 
 
30
  COPY requirements.txt .
31
- RUN python -m venv /venv && \
32
- /venv/bin/pip install --no-cache-dir -U pip && \
33
- /venv/bin/pip install --no-cache-dir -r requirements.txt
34
 
35
 
36
 
37
  COPY app.py .
38
 
39
- ENV PATH="/venv/bin:$PATH"
40
 
41
  EXPOSE 7860
42
 
 
27
  RUN mkdir -p /tmp/uploads /tmp/results /tmp/huggingface/transformers /tmp/huggingface/datasets \
28
  && chmod -R 777 /tmp/uploads /tmp/results /tmp/huggingface
29
 
30
+ # Copy requirements file and install dependencies
31
  COPY requirements.txt .
32
+ RUN pip install --no-cache-dir -U pip && \
33
+ pip install --no-cache-dir -r requirements.txt
 
34
 
35
 
36
 
37
  COPY app.py .
38
 
39
+
40
 
41
  EXPOSE 7860
42