Spaces:
Runtime error
Runtime error
MAKING SAME AS EARLIER
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -1,17 +1,11 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
COPY ./requirements.txt ./requirements.txt
|
8 |
|
9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
|
11 |
COPY . .
|
12 |
-
RUN echo "export PATH=$PATH:$HOME/.local/bin && python3 -m uvicorn app.main:app --host 0.0.0.0 --port 7860" > run.sh
|
13 |
-
|
14 |
-
CMD ["bash", "run.sh"]
|
15 |
-
|
16 |
|
17 |
-
|
|
|
1 |
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 . .
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|