Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -23,9 +23,7 @@ USER user
|
|
23 |
|
24 |
# Set home to the user's home directory
|
25 |
ENV HOME=/home/user \
|
26 |
-
PATH=/home/user/.local/bin:$PATH
|
27 |
-
PYTHONPATH=$HOME/app \
|
28 |
-
PYTHONUNBUFFERED=1
|
29 |
|
30 |
# Set the working directory to the user's home directory
|
31 |
WORKDIR $HOME/app
|
@@ -40,4 +38,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
40 |
EXPOSE 7860
|
41 |
|
42 |
# Command to run the application
|
43 |
-
CMD ["
|
|
|
23 |
|
24 |
# Set home to the user's home directory
|
25 |
ENV HOME=/home/user \
|
26 |
+
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
27 |
|
28 |
# Set the working directory to the user's home directory
|
29 |
WORKDIR $HOME/app
|
|
|
38 |
EXPOSE 7860
|
39 |
|
40 |
# Command to run the application
|
41 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|