diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..901ed14 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/Dockerrun.aws.json b/Dockerrun.aws.json new file mode 100644 index 0000000..41a9629 --- /dev/null +++ b/Dockerrun.aws.json @@ -0,0 +1,14 @@ +{ + "AWSEBDockerrunVersion": "1", + "Image": { + "Name": "harishkashyap/stdemo", + "Update": "true" + }, + "Ports": [ + { + "ContainerPort": 8501, + "HostPort": 8501 + } + ], + "Logging": "/var/log/nginx" +} diff --git a/README.md b/README.md index be0d473..5cfb428 100644 --- a/README.md +++ b/README.md @@ -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).