Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
|
@@ -12,11 +12,9 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 12 |
|
| 13 |
# Copy the rest of the application code into the container
|
| 14 |
COPY ./app.py /code/app.py
|
| 15 |
-
COPY ./.env /code/.env
|
| 16 |
|
| 17 |
-
# Make port
|
| 18 |
-
EXPOSE
|
| 19 |
|
| 20 |
# Run app.py when the container launches
|
| 21 |
-
# Use --host 0.0.0.0 to make it accessible from outside the container
|
| 22 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 12 |
|
| 13 |
# Copy the rest of the application code into the container
|
| 14 |
COPY ./app.py /code/app.py
|
|
|
|
| 15 |
|
| 16 |
+
# Make port 7860 available to the world outside this container
|
| 17 |
+
EXPOSE 7860
|
| 18 |
|
| 19 |
# Run app.py when the container launches
|
|
|
|
| 20 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|