diff --git a/Dockerfile b/Dockerfile index 85d5848..7eec3fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ WORKDIR /app COPY . . -RUN pip install -r requirements.txt +RUN conda update -n base -c conda-forge conda && conda env update --file environment.yml + # huggingface uses port 7860 by default CMD streamlit run app.py \ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cba151e --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +BASE="jupyterhub.cirrus.carlboettiger.info" +MAKEFLAGS += s + +.PHONY: serve +serve: + @echo "\n 🌎 preview at: \033[1m https://${BASE}${JUPYTERHUB_SERVICE_PREFIX}proxy/8501/ \033[0m \n" + streamlit run app.py --server.port 8501 1> /dev/null 2>&1 + diff --git a/README.md b/README.md index 9bcdf65..f8cf427 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ title: Redlining GBIF emoji: 🌍 colorFrom: yellow colorTo: indigo -sdk: streamlit +sdk: docker pinned: false license: bsd-2-clause --- diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..ef12a98 --- /dev/null +++ b/environment.yml @@ -0,0 +1,12 @@ +name: base +channels: + - conda-forge +dependencies: + - ibis-duckdb + - leafmap + - altair + - minio + - streamlit + - pip + - pip: + - maplibre