Dhrumit1314 commited on
Commit
233810c
1 Parent(s): 8f5e4b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -7,6 +7,10 @@ WORKDIR /code
7
  # Set environment variables
8
  ENV TRANSFORMERS_CACHE /code/.cache/huggingface
9
 
 
 
 
 
10
  # Copy the requirements file into the container at /code
11
  COPY ./requirements.txt /code/requirements.txt
12
 
@@ -21,3 +25,4 @@ EXPOSE 7860
21
 
22
  # Command to run the Flask application
23
  CMD ["python", "app.py"]
 
 
7
  # Set environment variables
8
  ENV TRANSFORMERS_CACHE /code/.cache/huggingface
9
 
10
+ # Create necessary directories and grant permissions
11
+ RUN mkdir -p /code/.cache/huggingface && \
12
+ chmod -R 777 /code/.cache/huggingface
13
+
14
  # Copy the requirements file into the container at /code
15
  COPY ./requirements.txt /code/requirements.txt
16
 
 
25
 
26
  # Command to run the Flask application
27
  CMD ["python", "app.py"]
28
+