daniellefranca96 commited on
Commit
db4dc0d
1 Parent(s): 4c47a78

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -2,13 +2,14 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY ./main.py /code/main.py
10
 
11
- COPY ./entrypoint.sh /code/entrypoint.sh
12
- RUN chmod +x /code/entrypoint.sh
13
-
14
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ ENV HF_HOME= /code/.cache
6
+
7
  COPY ./requirements.txt /code/requirements.txt
8
 
9
+ RUN mkdir -p /code/.cache && chmod -R 777 /code/.cache
10
+
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
  COPY ./main.py /code/main.py
14
 
 
 
 
15
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]