Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -2,6 +2,9 @@ FROM python:3.9-slim
|
|
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
|
@@ -10,4 +13,6 @@ COPY . /code
|
|
10 |
|
11 |
EXPOSE 7865
|
12 |
|
13 |
-
|
|
|
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
# Install git
|
6 |
+
RUN apt-get update && apt-get install -y git
|
7 |
+
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
13 |
|
14 |
EXPOSE 7865
|
15 |
|
16 |
+
ENV PYTHONPATH=/code
|
17 |
+
|
18 |
+
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7865"]
|