iamsuman commited on
Commit
e7217d9
·
1 Parent(s): fc0cdea

revert to old version

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -24
Dockerfile CHANGED
@@ -1,35 +1,22 @@
1
- FROM python:3.11
2
 
3
- # Set up a new user named "user" with user ID 1000 for permission
4
- RUN useradd -m -u 1000 user
5
- # Switch to the "user" user
6
- USER user
7
-
8
-
9
- # Set home to the user's home directory
10
- ENV HOME=/home/user \
11
- PATH=/home/user/.local/bin:$PATH
12
-
13
- RUN pip install -U "geemap[workshop]"
14
- # RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
15
- # fix-permissions "${CONDA_DIR}" && \
16
- # fix-permissions "/home/${NB_USER}"
17
 
18
  COPY requirements.txt .
19
  RUN pip install -r requirements.txt
20
 
21
- RUN --chown=user mkdir ./pages
22
- COPY --chown=user /pages ./pages
23
-
24
- RUN --chown=user mkdir ./data
25
- COPY --chown=user /data ./data
26
 
27
  ENV PROJ_LIB='/opt/conda/share/proj'
28
 
29
- # USER root
30
- # RUN chown -R ${NB_UID} ${HOME}
31
- # USER ${NB_USER}
32
 
33
  EXPOSE 8765
34
 
35
- CMD ["solara", "run", "./pages", "--host=0.0.0.0", "--production"]
 
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
9
 
10
+ RUN mkdir ./pages
11
+ COPY /pages ./pages
12
+ COPY /data ./data
 
 
13
 
14
  ENV PROJ_LIB='/opt/conda/share/proj'
15
 
16
+ USER root
17
+ RUN chown -R ${NB_UID} ${HOME}
18
+ USER ${NB_USER}
19
 
20
  EXPOSE 8765
21
 
22
+ CMD ["solara", "run", "./pages", "--host=0.0.0.0"]