Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -9,7 +9,7 @@ USER user
|
|
9 |
|
10 |
|
11 |
COPY --chown=user ./requirements.txt /api/requirements.txt
|
12 |
-
COPY --chown=user ./
|
13 |
|
14 |
WORKDIR /api
|
15 |
|
@@ -25,4 +25,4 @@ RUN pip install -r requirements.txt
|
|
25 |
# RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
|
26 |
# git clone $(cat /run/secrets/SECRET_EXAMPLE)
|
27 |
|
28 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
9 |
|
10 |
|
11 |
COPY --chown=user ./requirements.txt /api/requirements.txt
|
12 |
+
COPY --chown=user ./fastapi-demo /api/fastapi-demo
|
13 |
|
14 |
WORKDIR /api
|
15 |
|
|
|
25 |
# RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
|
26 |
# git clone $(cat /run/secrets/SECRET_EXAMPLE)
|
27 |
|
28 |
+
CMD ["uvicorn", "fastapi-demo.main:app", "--host", "0.0.0.0", "--port", "7860"]
|