MHypothesisReview / Dockerfile
aeiche01's picture
Update Dockerfile
ad7ec57 verified
raw
history blame contribute delete
535 Bytes
FROM jupyter/base-notebook:latest
RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN mkdir ./pages
COPY /pages ./pages
ENV PROJ_LIB='/opt/conda/share/proj'
# ---- Add these lines ----
ENV UVICORN_PROXY_HEADERS=1
ENV FORWARDED_ALLOW_IPS="*"
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
EXPOSE 8765
CMD ["solara", "run", "./pages", "--host=0.0.0.0"]