try build
Browse files- Dockerfile +18 -16
Dockerfile
CHANGED
|
@@ -1,23 +1,25 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
USER user
|
| 7 |
-
# Set home to the user's home directory
|
| 8 |
-
ENV HOME=/home/user \
|
| 9 |
-
PATH=/home/user/.local/bin:$PATH
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
-
COPY
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
|
|
|
|
| 1 |
+
FROM jupyter/base-notebook:latest
|
| 2 |
|
| 3 |
+
RUN mamba install -c conda-forge geopandas localtileserver -y && \
|
| 4 |
+
fix-permissions "${CONDA_DIR}" && \
|
| 5 |
+
fix-permissions "/home/${NB_USER}"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
RUN mkdir ./pages
|
| 8 |
+
COPY /pages ./pages
|
| 9 |
|
| 10 |
+
COPY *.py *.css /
|
| 11 |
|
| 12 |
+
COPY requirements.txt .
|
| 13 |
+
|
| 14 |
+
RUN pip install --no-cache-dir --upgrade pip
|
| 15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 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 |
|
| 25 |
+
CMD ["solara", "run", "main.py", "--host=0.0.0.0"]
|