Spaces:
Build error
Build error
File size: 952 Bytes
c49ea36 d9e094b 79a119d 0edf1f6 d9e094b 7311e0a d9e094b 19b8a09 032c1a0 dffbe14 d9e094b dffbe14 d9e094b dffbe14 e4ba781 dffbe14 b6db88e d9e094b dffbe14 d9e094b |
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 31 32 33 34 35 36 37 38 |
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
#RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
# fix-permissions "${CONDA_DIR}" && \
# fix-permissions "/home/${NB_USER}"
COPY requirements.txt .
RUN python3 -m pip install --upgrade pip setuptools wheel
RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt
ENV PROJ_LIB='/opt/conda/share/proj'
#USER root
#RUN chown -R ${NB_UID} ${HOME}
#USER ${NB_USER}
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"]
|