Skip to content

create a dockerfile -Experimenting#5

Open
shubhodeep08 wants to merge 2 commits intomasterfrom
experimenting
Open

create a dockerfile -Experimenting#5
shubhodeep08 wants to merge 2 commits intomasterfrom
experimenting

Conversation

@shubhodeep08
Copy link

FROM python:3.9-slim

WORKDIR /app
RUN apt-get update && apt-get install -y
build-essential
curl
software-properties-common
git
&& rm -rf /var/lib/apt/lists/*

COPY . .

RUN mkdir ~/.streamlit/
RUN cp credentials.toml ~/.streamlit/
RUN pip3 install -r requirements.txt

HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health

EXPOSE 8501

ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

@shubhodeep08
Copy link
Author

before deploying on docker you must pass the creadentials.toml file inside the container so it wont ask for the email id on the terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants