jordancaraballo commited on
Commit
b6db88e
1 Parent(s): e4ba781

Working on #26, fixing Dockerfile typo, adding packages for cartopy

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -15,15 +15,22 @@ COPY requirements.txt .
15
  RUN python3 -m pip install --upgrade pip setuptools wheel
16
  RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt
17
 
18
- RUN mkdir ./pages
19
- COPY /pages ./pages
20
-
21
  ENV PROJ_LIB='/opt/conda/share/proj'
22
 
23
  #USER root
24
  #RUN chown -R ${NB_UID} ${HOME}
25
  #USER ${NB_USER}
26
 
 
 
 
 
 
 
 
 
 
 
27
  EXPOSE 7860
28
 
29
  CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]
 
15
  RUN python3 -m pip install --upgrade pip setuptools wheel
16
  RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt
17
 
 
 
 
18
  ENV PROJ_LIB='/opt/conda/share/proj'
19
 
20
  #USER root
21
  #RUN chown -R ${NB_UID} ${HOME}
22
  #USER ${NB_USER}
23
 
24
+ RUN useradd -m -u 1000 user
25
+ USER user
26
+ ENV HOME=/home/user \
27
+ PATH=/home/user/.local/bin:$PATH
28
+
29
+ WORKDIR $HOME
30
+
31
+ RUN mkdir ./pages
32
+ COPY --chown=user /pages ./pages
33
+
34
  EXPOSE 7860
35
 
36
  CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]