Spaces:
Sleeping
Sleeping
daniellefranca96
commited on
Commit
•
4c47a78
1
Parent(s):
eae9eb8
Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
@@ -2,16 +2,13 @@ FROM python:3.9
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
-
VOLUME /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 |
-
|
|
|
16 |
|
17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
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"]
|