Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -65,10 +65,10 @@ RUN mkdir -p $TRANSFORMERS_CACHE && chmod -R 777 $TRANSFORMERS_CACHE
|
|
| 65 |
COPY . .
|
| 66 |
|
| 67 |
# Expose the port that the application listens on.
|
| 68 |
-
|
| 69 |
EXPOSE 8501
|
| 70 |
|
| 71 |
# Run the application.
|
| 72 |
# CMD uvicorn 'main:app' --host=0.0.0.0 --port=8000
|
| 73 |
-
|
| 74 |
-
CMD streamlit run BrainBot.py
|
|
|
|
| 65 |
COPY . .
|
| 66 |
|
| 67 |
# Expose the port that the application listens on.
|
| 68 |
+
EXPOSE 7860
|
| 69 |
EXPOSE 8501
|
| 70 |
|
| 71 |
# Run the application.
|
| 72 |
# CMD uvicorn 'main:app' --host=0.0.0.0 --port=8000
|
| 73 |
+
CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|
| 74 |
+
# CMD streamlit run BrainBot.py
|