From bf67e87a113556b22ed2b768c086e41d7790e425 Mon Sep 17 00:00:00 2001 From: Carl Boettiger Date: Tue, 3 Dec 2024 00:07:57 +0000 Subject: [PATCH] :see_no_evil: --- Dockerfile | 3 ++- Makefile | 8 ++++++++ README.md | 2 +- environment.yml | 12 ++++++++++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 Makefile create mode 100644 environment.yml 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