jordancaraballo commited on
Commit
d9e094b
·
1 Parent(s): c49ea36

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

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -12
Dockerfile CHANGED
@@ -1,25 +1,29 @@
1
  FROM python:3.11-slim-bullseye
 
2
  ENV DEBIAN_FRONTEND=noninteractive
 
3
  RUN rm -rf /etc/apt/sources.list.d/*.list && \
4
- apt-get update && apt-get install -y git gcc build-essential libgeos-dev
 
 
5
 
6
  #RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
7
  # fix-permissions "${CONDA_DIR}" && \
8
  # fix-permissions "/home/${NB_USER}"
9
 
10
- #COPY requirements.txt .
11
- #RUN pip install --upgrade pip setuptools wheel
12
- #RUN pip install --no-cache-dir --compile -r requirements.txt
13
 
14
- #RUN mkdir ./pages
15
- #COPY /pages ./pages
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 7860
24
 
25
- #CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]
 
1
  FROM python:3.11-slim-bullseye
2
+
3
  ENV DEBIAN_FRONTEND=noninteractive
4
+
5
  RUN rm -rf /etc/apt/sources.list.d/*.list && \
6
+ apt-get update && apt-get install -y git gcc build-essential python3-dev libgeos-dev
7
+
8
+ RUN python3 -m pip install --upgrade pip setuptools wheel
9
 
10
  #RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
11
  # fix-permissions "${CONDA_DIR}" && \
12
  # fix-permissions "/home/${NB_USER}"
13
 
14
+ 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"]