Skip to content

Commit

Permalink
mamba
Browse files Browse the repository at this point in the history
  • Loading branch information
joglekara committed Nov 2, 2024
1 parent 8212b9a commit 9ebeddf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# base image
FROM mambaorg/micromamba:latest

COPY requirements.txt .
COPY tsadar_app.py .
COPY --chown=$MAMBA_USER:$MAMBA_USER requirements.txt .
COPY --chown=$MAMBA_USER:$MAMBA_USER mambaenv.yaml .
COPY --chown=$MAMBA_USER:$MAMBA_USER tsadar_app.py .
RUN micromamba install -y -n base -f mambaenv.yaml && \
micromamba clean --all --yes

EXPOSE 8501
# install git and gcc and hdf
# RUN apt-get update && apt-get install -y git

# install pip then packages

RUN mamba create -n tsadar_app python=3.12
RUN mamba activate tsadar_app
RUN mamba install -y -c pyhdf
RUN pip3 install -r requirements.txt
# RUN mamba create -n tsadar_app python=3.12
# RUN mamba activate tsadar_app
# RUN mamba install -y -c pyhdf
# RUN pip3 install -r requirements.txt

CMD streamlit run tsadar.py \
--server.headless=true \
Expand Down
11 changes: 11 additions & 0 deletions mambaenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: base
channels:
- conda-forge
dependencies:
- python=3.12
- pip
- pyhdf
- streamlit
# install pip requirements
- pip:
- git+https://github.com/ergodicio/tsadar.git

0 comments on commit 9ebeddf

Please sign in to comment.