Nguyen Thai Thao Uyen commited on
Commit
4be4360
·
1 Parent(s): a5d73b4

Update Dockerfile to use venv

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -18,8 +18,8 @@ RUN pip install --upgrade pip \
18
 
19
  COPY . .
20
 
21
- # Set permissions
22
- RUN mkdir cache && chmod 777 cache
23
 
24
  EXPOSE 7860
25
 
 
18
 
19
  COPY . .
20
 
21
+ # Set permissions for cache directory if it exists
22
+ RUN if [ ! -d "cache" ]; then mkdir cache; fi && chmod 777 cache
23
 
24
  EXPOSE 7860
25