This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── app.py # streamlit code | |
├── content.py # textual content - imported into app | |
├── images # various images for your app | |
│ ├── logo.png | |
│ ├── background.png | |
├── requirements.txt # libraries used by your app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# base image | |
# a little overkill but need it to install dot cli for dtreeviz | |
FROM ubuntu:18.04 | |
# ubuntu installing - python, pip, graphviz | |
RUN apt-get update &&\ | |
apt-get install python3.7 -y &&\ | |
apt-get install python3-pip -y &&\ | |
apt-get install graphviz -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN apt-get update &&\ | |
apt-get install python3.7 -y &&\ | |
apt-get install python3-pip -y &&\ | |
apt-get install graphviz -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXPOSE 8501 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORKDIR /streamlit-docker | |
COPY requirements.txt ./requirements.txt | |
RUN pip3 install -r requirements.txt | |
COPY . . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMD streamlit run app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV LC_ALL=C.UTF-8 | |
ENV LANG=C.UTF-8 | |
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\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker image build -t streamlit:app . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker image ls | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
streamlit app ecda3493de33 50 seconds ago 1.52GB |
OlderNewer