Update Dockerfile
Browse files15 unmodified lines16171819201920212223242522232425262728272829303142 unmodified lines7475767778777815 unmodified lines# the application crashes without emitting any logs due to buffering.ENV PYTHONUNBUFFERED=1
# Set HOME environment variableENV HOME=/root# # Set HOME environment variable# ENV HOME=/root
# Install ngrokRUN apt-get update && apt-get install -y wget unzipRUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zipRUN unzip ngrok-stable-linux-amd64.zip -d /home/ngrok# # Install ngrok# RUN apt-get update && apt-get install -y wget unzip# RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip# RUN unzip ngrok-stable-linux-amd64.zip -d /home/ngrok
# Set ngrok authtoken from environment variableRUN /home/ngrok/ngrok authtoken 2b4yAiTmpacHDqRT8mlaIdwnbFJ_2zkZKS7XQVPQb5GWVwUew# # Set ngrok authtoken from environment variable# RUN /home/ngrok/ngrok authtoken 2b4yAiTmpacHDqRT8mlaIdwnbFJ_2zkZKS7XQVPQb5GWVwUew
WORKDIR /app
42 unmodified linesEXPOSE 8501
# Run the application.# CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]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"]CMD ["bash", "-c", "uvicorn main:app --host 0.0.0.0 --port 7860 & streamlit run BrainBot.py --server.port 8501"]# 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"]Dockerfile+10-10