Corran commited on
Commit
a5e0c99
·
verified ·
1 Parent(s): b98c62f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM jupyter/scipy-notebook:latest
2
+ RUN mamba install -c conda-forge localtileserver osmnx -y && \
3
+ pip install -U solara solara-enterprise[auth] && \
4
+ fix-permissions "${CONDA_DIR}" && \
5
+ fix-permissions "/home/${NB_USER}"
6
+
7
+ COPY app.py app.py
8
+
9
+ ENV PROJ_LIB='/opt/conda/share/proj'
10
+
11
+ USER root
12
+ RUN chown -R ${NB_UID} ${HOME}
13
+ USER ${NB_USER}
14
+
15
+ EXPOSE 8765
16
+
17
+ CMD ["solara", "run", "app.py", "--host=0.0.0.0", "--port", "7860"]