# base image FROM python:3.7 USER root #Upgrade pip RUN pip install --upgrade pip # copy over and install packages COPY requirements.txt ./requirements.txt RUN pip install -r requirements.txt # streamlit-specific commands RUN mkdir -p /root/.streamlit RUN bash -c 'echo -e "\ [general]\n\ email = \"\"\n\ " > /root/.streamlit/credentials.toml' RUN bash -c 'echo -e "\ [server]\n\ enableCORS = false\n\ " > /root/.streamlit/config.toml' # exposing default port for streamlit EXPOSE 443 # copying everything over COPY . . # run app CMD streamlit run webapp/app.py --server.port 443