diff --git a/Dockerfile b/Dockerfile index d1df1d0..6745360 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,11 @@ RUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/* -RUN git clone https://github.com/streamlit/streamlit-example.git . +#RUN git clone https://github.com/streamlit/streamlit-example.git . +COPY . /app + +RUN pip3 install --upgrade pip RUN pip3 install -r requirements.txt EXPOSE 8501 diff --git a/build_and_run.sh b/build_and_run.sh new file mode 100755 index 0000000..5e10550 --- /dev/null +++ b/build_and_run.sh @@ -0,0 +1,2 @@ +docker build -t lithos-app . +docker run -p 8501:8501 lithos-app \ No newline at end of file diff --git a/readme.md b/readme.md index 2dca9e8..99d5df9 100644 --- a/readme.md +++ b/readme.md @@ -8,9 +8,14 @@ You’re free to use the framework of your choice. We want to understand how you -steps: - -- streamlit getting started +### Dev steps: +- streamlit getting started (done) - display a shapefile - add a legend - add feature to select shape file + + +### Running the app: +- chmod u+x build_and_run.sh +- ./build_and_run.sh +- Visit http://0.0.0.0:8501 diff --git a/requirements.txt b/requirements.txt index e69de29..aa99921 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +streamlit==1.41.1 \ No newline at end of file