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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -4,6 +4,9 @@ FROM python:3.9
4
  # Set the working directory inside the container
5
  WORKDIR /code
6
 
 
 
 
7
  # Copy the requirements file into the container at /code
8
  COPY ./requirements.txt /code/requirements.txt
9
 
@@ -13,8 +16,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
  # Copy the entire current directory into the container at /code
14
  COPY . .
15
 
16
- # Expose port 5000 to the outside world
17
  EXPOSE 7860
18
 
19
- # Command to run the Flask applicationW
20
- CMD ["python", "app.py"]
 
4
  # Set the working directory inside the container
5
  WORKDIR /code
6
 
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
 
 
16
  # Copy the entire current directory into the container at /code
17
  COPY . .
18
 
19
+ # Expose port 7860 to the outside world
20
  EXPOSE 7860
21
 
22
+ # Command to run the Flask application
23
+ CMD ["python", "app.py"]