Skip to content

Adds hosting files for AWS Elastic Beanstalk #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM python:3.8-slim-buster
COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt
EXPOSE 8501
ENTRYPOINT ["streamlit","run"]
CMD ["Hello.py"]
14 changes: 14 additions & 0 deletions Dockerrun.aws.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "harishkashyap/stdemo",
"Update": "true"
},
"Ports": [
{
"ContainerPort": 8501,
"HostPort": 8501
}
],
"Logging": "/var/log/nginx"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ streamlit hello
- [Documentation](https://docs.streamlit.io/library/get-started/multipage-apps)
- [Blog post](https://blog.streamlit.io/introducing-multipage-apps/)

## Elastic Beanstalk Hosting Support

To host on elastic beanstalk, select docker as type and push the docker image to public image.
- Adds Dockerfile and Dockerrun file.

## Questions? Comments?

Please ask in the [community forum](https://discuss.streamlit.io).