namanpenguin commited on
Commit
55fd36f
·
verified ·
1 Parent(s): fa4d5bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -23,10 +23,12 @@ RUN mkdir -p /app/uploads \
23
  /app/saved_models/bert \
24
  /app/predictions \
25
  /app/tokenizer \
 
26
  && chmod -R 777 /app/uploads \
27
  /app/saved_models \
28
  /app/predictions \
29
- /app/tokenizer
 
30
 
31
  # Copy the application code and utilities
32
  COPY . /app/
@@ -40,6 +42,7 @@ COPY ../label_encoders.pkl /app/
40
  ENV PYTHONPATH=/app
41
  ENV PYTHONUNBUFFERED=1
42
  ENV PORT=7860
 
43
 
44
  # Expose the port the app runs on
45
  EXPOSE 7860
 
23
  /app/saved_models/bert \
24
  /app/predictions \
25
  /app/tokenizer \
26
+ /app/cache \
27
  && chmod -R 777 /app/uploads \
28
  /app/saved_models \
29
  /app/predictions \
30
+ /app/tokenizer \
31
+ /app/cache
32
 
33
  # Copy the application code and utilities
34
  COPY . /app/
 
42
  ENV PYTHONPATH=/app
43
  ENV PYTHONUNBUFFERED=1
44
  ENV PORT=7860
45
+ ENV TRANSFORMERS_CACHE=/app/cache
46
 
47
  # Expose the port the app runs on
48
  EXPOSE 7860