Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -19,5 +19,9 @@ COPY app /code/app
|
|
| 19 |
# Copy model
|
| 20 |
COPY ./bert-model /code/./bert-model
|
| 21 |
|
| 22 |
-
# Expose port
|
|
|
|
|
|
|
|
|
|
| 23 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
| 19 |
# Copy model
|
| 20 |
COPY ./bert-model /code/./bert-model
|
| 21 |
|
| 22 |
+
# Expose the port used by FastAPI
|
| 23 |
+
EXPOSE 7860
|
| 24 |
+
|
| 25 |
+
# Run the app
|
| 26 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 27 |
+
|