Spaces:
Runtime error
Runtime error
NewtonKimathi
commited on
Commit
•
be04c0f
1
Parent(s):
206e861
Docker file
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -19,10 +19,10 @@ ENV HOME=/home/user \
|
|
19 |
PATH=/home/user/.local/bin:$PATH
|
20 |
|
21 |
# Set the working directory to the user's home directory
|
22 |
-
WORKDIR $HOME/
|
23 |
|
24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
25 |
-
COPY --chown=user . $HOME/
|
26 |
|
27 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
28 |
-
CMD ["uvicorn", "main:app", "--host", "127.0.0.
|
|
|
19 |
PATH=/home/user/.local/bin:$PATH
|
20 |
|
21 |
# Set the working directory to the user's home directory
|
22 |
+
WORKDIR $HOME/app
|
23 |
|
24 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
25 |
+
COPY --chown=user . $HOME/app
|
26 |
|
27 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
28 |
+
CMD ["uvicorn", "main:app", "--host", "127.0.0.0", "--port", "8000"]
|