-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ergodicio/bugfix/docker
Mamba docker image
- Loading branch information
Showing
4 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
# base image | ||
FROM python:3.12-slim | ||
FROM mambaorg/micromamba:latest | ||
|
||
COPY requirements.txt . | ||
COPY stapp.py . | ||
WORKDIR /app | ||
|
||
EXPOSE 8501 | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER tsadar_gui /app/tsadar_gui | ||
COPY --chown=$MAMBA_USER:$MAMBA_USER mambaenv.yaml tsadar_app.py /app/ | ||
|
||
RUN micromamba install -y -n base -f /app/mambaenv.yaml && \ | ||
micromamba clean --all --yes | ||
|
||
# install pip then packages | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -r requirements.txt | ||
EXPOSE 8501 | ||
|
||
CMD streamlit run tsadar.py \ | ||
CMD micromamba run -n base streamlit run /app/tsadar_app.py \ | ||
--server.headless=true \ | ||
--browser.serverAddress="0.0.0.0" \ | ||
--server.port=8501 \ | ||
--browser.gatherUsageStats=false \ | ||
--server.baseUrlPath="/thomson" | ||
--server.baseUrlPath="/tsadar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: base | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.12 | ||
- git | ||
- pip | ||
- pyhdf | ||
- streamlit | ||
# install pip requirements | ||
- pip: | ||
- git+https://github.com/ergodicio/tsadar.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters