Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -16,6 +16,11 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|
| 16 |
# the application crashes without emitting any logs due to buffering.
|
| 17 |
ENV PYTHONUNBUFFERED=1
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
WORKDIR /app
|
| 20 |
|
| 21 |
# Create a non-privileged user that the app will run under.
|
|
@@ -64,4 +69,4 @@ EXPOSE 8501
|
|
| 64 |
|
| 65 |
# Run the application.
|
| 66 |
# CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|
| 67 |
-
CMD ["bash", "-c", "
|
|
|
|
| 16 |
# the application crashes without emitting any logs due to buffering.
|
| 17 |
ENV PYTHONUNBUFFERED=1
|
| 18 |
|
| 19 |
+
# Install ngrok
|
| 20 |
+
RUN apt-get update && apt-get install -y wget unzip
|
| 21 |
+
RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
| 22 |
+
RUN unzip ngrok-stable-linux-amd64.zip -d /usr/local/bin/
|
| 23 |
+
|
| 24 |
WORKDIR /app
|
| 25 |
|
| 26 |
# Create a non-privileged user that the app will run under.
|
|
|
|
| 69 |
|
| 70 |
# Run the application.
|
| 71 |
# CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|
| 72 |
+
CMD ["bash", "-c", "./ngrok http 7860 & uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|