|
|
FROM mambaorg/micromamba |
|
|
|
|
|
LABEL org.opencontainers.image.title="ClimSight" |
|
|
LABEL org.opencontainers.image.description="A tool that combines LLMs with climate data to provide localized insights for decision-making in agriculture, urban planning, disaster management, and policy development." |
|
|
LABEL org.opencontainers.image.authors="koldunovn, kuivi, AntoniaJost, dmpantiu, boryasbora" |
|
|
LABEL org.opencontainers.image.url="https://github.com/CliDyn/climsight" |
|
|
LABEL org.opencontainers.image.version="1.0.0" |
|
|
LABEL org.opencontainers.image.licenses="BSD-3-Clause" |
|
|
LABEL org.opencontainers.image.source="https://github.com/CliDyn/climsight" |
|
|
LABEL org.label-schema.citation="https://doi.org/10.1038/s43247-023-01199-1" |
|
|
|
|
|
COPY --chown=$MAMBA_USER:$MAMBA_USER . /app |
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
RUN sed -i 's/name: climsight/name: base/g' ./environment.yml |
|
|
RUN micromamba install -f ./environment.yml && \ |
|
|
micromamba clean --all --yes |
|
|
ARG MAMBA_DOCKERFILE_ACTIVATE=1 |
|
|
|
|
|
RUN touch /app/climsight.log && chmod 777 /app/climsight.log |
|
|
|
|
|
RUN python download_data.py |
|
|
|
|
|
RUN chmod 777 /app/data |
|
|
RUN chmod 777 /app/rag_articles |
|
|
RUN chmod 777 /app/rag_db |
|
|
|
|
|
|
|
|
|
|
|
ENV STREAMLIT_SERVER_PORT=7860 |
|
|
|
|
|
|
|
|
EXPOSE 7860 |
|
|
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 |
|
|
|
|
|
|
|
|
ENV STREAMLIT_ARGS="" |
|
|
|
|
|
|
|
|
CMD streamlit run src/climsight/climsight.py $STREAMLIT_ARGS |
|
|
|