saicharan1234 commited on
Commit
4776855
·
1 Parent(s): 9db34c4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- FROM python:3.10.12
2
- COPY main.py /app/
3
- COPY requirements.txt /app/
4
- RUN pip install --no-cache-dir -r /app/requirements.txt
5
- WORKDIR /app
6
- CMD [ "uvicorn ","main:app","--host","0.0.0.0","--port","80" ]
7
-
8
 
9
  FROM python:3.10.12
10
 
11
  # Set the working directory in the container
12
  WORKDIR /app
13
 
 
 
 
14
  # Copy the requirements file to the container
15
  COPY requirements.txt .
16
 
 
 
 
 
 
 
 
 
1
 
2
  FROM python:3.10.12
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Set the TRANSFORMERS_CACHE environment variable
8
+ ENV TRANSFORMERS_CACHE /app/cache/
9
+
10
  # Copy the requirements file to the container
11
  COPY requirements.txt .
12