Spaces:
Sleeping
Sleeping
use updated user
Browse files- Dockerfile +13 -3
Dockerfile
CHANGED
@@ -1,5 +1,15 @@
|
|
1 |
FROM python:3.11
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
RUN pip install -U "geemap[workshop]"
|
4 |
# RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
|
5 |
# fix-permissions "${CONDA_DIR}" && \
|
@@ -16,9 +26,9 @@ COPY /data ./data
|
|
16 |
|
17 |
ENV PROJ_LIB='/opt/conda/share/proj'
|
18 |
|
19 |
-
USER root
|
20 |
-
RUN chown -R ${NB_UID} ${HOME}
|
21 |
-
USER ${NB_USER}
|
22 |
|
23 |
EXPOSE 8765
|
24 |
|
|
|
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}" && \
|
|
|
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 |
|