Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -11
- requirements.txt +1 -2
Dockerfile
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
-
FROM jupyter/base-notebook:latest
|
2 |
-
|
3 |
-
RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
|
4 |
-
fix-permissions "${CONDA_DIR}" && \
|
5 |
-
fix-permissions "/home/${NB_USER}"
|
6 |
|
7 |
COPY requirements.txt .
|
8 |
RUN pip install -r requirements.txt
|
@@ -10,12 +6,11 @@ RUN pip install -r requirements.txt
|
|
10 |
RUN mkdir ./pages
|
11 |
COPY /pages ./pages
|
12 |
|
13 |
-
|
|
|
14 |
|
15 |
-
|
16 |
-
RUN chown -R ${NB_UID} ${HOME}
|
17 |
-
USER ${NB_USER}
|
18 |
|
19 |
-
|
20 |
|
21 |
-
|
|
|
1 |
+
FROM quay.io/jupyter/base-notebook:latest
|
|
|
|
|
|
|
|
|
2 |
|
3 |
COPY requirements.txt .
|
4 |
RUN pip install -r requirements.txt
|
|
|
6 |
RUN mkdir ./pages
|
7 |
COPY /pages ./pages
|
8 |
|
9 |
+
WORKDIR /home/jovyan
|
10 |
+
USER jovyan
|
11 |
|
12 |
+
EXPOSE 7860
|
|
|
|
|
13 |
|
14 |
+
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
|
15 |
|
16 |
+
ENTRYPOINT ["solara", "run", "./pages", "--host=0.0.0.0", "--port=7860"]
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
leafmap
|
2 |
solara
|
3 |
-
geopandas
|
4 |
-
pydantic< 2.0
|
|
|
1 |
leafmap
|
2 |
solara
|
3 |
+
geopandas
|
|