nroggendorff commited on
Commit
8307b51
·
verified ·
1 Parent(s): 6904aed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -2,10 +2,14 @@ FROM python:latest
2
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  COPY requirements.txt .
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
  COPY app.py .
10
 
11
- CMD ["sudo", "python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN mkdir /app/cache
6
+
7
+ ENV TRANSFORMERS_CACHE /app/cache
8
+
9
  COPY requirements.txt .
10
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  COPY app.py .
14
 
15
+ CMD ["python", "app.py"]