File size: 894 Bytes
c49ea36
d9e094b
79a119d
0edf1f6
d9e094b
7311e0a
d9e094b
 
cd55fe8
a296da5
cd55fe8
a8bdcd5
6c862fa
cd55fe8
6c862fa
d9e094b
dffbe14
b6db88e
 
 
 
 
 
 
 
 
 
d9e094b
dffbe14
cd55fe8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.11-slim-bullseye

ENV DEBIAN_FRONTEND=noninteractive
ENV HF_HUB_DISABLE_PROGRESS_BARS=1

RUN rm -rf /etc/apt/sources.list.d/*.list && \
    apt-get update && apt-get install -y git gcc build-essential python3-dev libgeos-dev

RUN python3 -m pip install --upgrade pip setuptools wheel

COPY requirements.txt .
RUN python3 -m pip install --upgrade pip setuptools wheel cython numpy pyshp six pyproj streamlit-folium
RUN python3 -m pip install --upgrade --no-binary :all: shapely
RUN python3 -m pip install git+https://github.com/SciTools/cartopy.git --upgrade cartopy

RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt

RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME

RUN mkdir ./pages
COPY --chown=user /pages ./pages

EXPOSE 7860

CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]