Update Dockerfile
Browse files- Dockerfile +10 -10
Dockerfile
CHANGED
@@ -16,16 +16,16 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|
16 |
# the application crashes without emitting any logs due to buffering.
|
17 |
ENV PYTHONUNBUFFERED=1
|
18 |
|
19 |
-
# Set HOME environment variable
|
20 |
-
ENV HOME=/root
|
21 |
|
22 |
-
# Install ngrok
|
23 |
-
RUN apt-get update && apt-get install -y wget unzip
|
24 |
-
RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
25 |
-
RUN unzip ngrok-stable-linux-amd64.zip -d /home/ngrok
|
26 |
|
27 |
-
# Set ngrok authtoken from environment variable
|
28 |
-
RUN /home/ngrok/ngrok authtoken 2b4yAiTmpacHDqRT8mlaIdwnbFJ_2zkZKS7XQVPQb5GWVwUew
|
29 |
|
30 |
WORKDIR /app
|
31 |
|
@@ -74,5 +74,5 @@ EXPOSE 7860
|
|
74 |
EXPOSE 8501
|
75 |
|
76 |
# Run the application.
|
77 |
-
|
78 |
-
CMD ["bash", "-c", "/home/ngrok/ngrok http 7860 & uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|
|
|
16 |
# the application crashes without emitting any logs due to buffering.
|
17 |
ENV PYTHONUNBUFFERED=1
|
18 |
|
19 |
+
# # Set HOME environment variable
|
20 |
+
# ENV HOME=/root
|
21 |
|
22 |
+
# # Install ngrok
|
23 |
+
# RUN apt-get update && apt-get install -y wget unzip
|
24 |
+
# RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
|
25 |
+
# RUN unzip ngrok-stable-linux-amd64.zip -d /home/ngrok
|
26 |
|
27 |
+
# # Set ngrok authtoken from environment variable
|
28 |
+
# RUN /home/ngrok/ngrok authtoken 2b4yAiTmpacHDqRT8mlaIdwnbFJ_2zkZKS7XQVPQb5GWVwUew
|
29 |
|
30 |
WORKDIR /app
|
31 |
|
|
|
74 |
EXPOSE 8501
|
75 |
|
76 |
# Run the application.
|
77 |
+
CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|
78 |
+
# CMD ["bash", "-c", "/home/ngrok/ngrok http 7860 & uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]
|