Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -13,11 +13,11 @@ COPY . /my_codes
|
|
| 13 |
# Install any needed packages specified in requirements.txt
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
# Make port 80 available to the world outside this container
|
| 19 |
EXPOSE 80
|
| 20 |
|
| 21 |
# Run app.py when the container launches
|
| 22 |
#CMD ["uvicorn", "main", "--host", "0.0.0.0", "--port", "80"]
|
| 23 |
-
CMD ["uvicorn", "
|
|
|
|
| 13 |
# Install any needed packages specified in requirements.txt
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
+
WORKDIR /app
|
| 17 |
|
| 18 |
# Make port 80 available to the world outside this container
|
| 19 |
EXPOSE 80
|
| 20 |
|
| 21 |
# Run app.py when the container launches
|
| 22 |
#CMD ["uvicorn", "main", "--host", "0.0.0.0", "--port", "80"]
|
| 23 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|