Skip to content

Commit 0d18775

Browse files
authored
Update run.sh
1 parent 08f300e commit 0d18775

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docker/streamlit_deploy/run.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ elif [ -z "${DIR}" ]; then
1313
/miniconda/bin/conda init
1414
source ~/.bashrc
1515
if [ -f "environment.yml" ]; then
16-
conda install -c conda-forge mamba -y
17-
mamba env create -f environment.yml --prefix ~/.conda/envs/developer
18-
~/.conda/envs/developer/bin/python streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0
16+
rm -rf ~/.conda/envs/developer
17+
/miniconda/bin/conda env create -f environment.yml --prefix ~/.conda/envs/developer
18+
~/.conda/envs/developer/bin/python -m streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0
1919
elif [ -f "requirements.txt" ]; then
2020
/miniconda/bin/python -m pip install -r requirements.txt --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
2121
/miniconda/bin/python -m streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0
@@ -33,10 +33,9 @@ elif [ -z "${REPO}" ]; then
3333
/miniconda/bin/conda init
3434
source ~/.bashrc
3535
if [ -f "environment.yml" ]; then
36-
conda install -c conda-forge mamba -y
37-
rm ~/.conda/envs/developer
38-
mamba env create -f environment.yml --prefix ~/.conda/envs/developer
39-
~/.conda/envs/developer/bin/python streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0
36+
rm -rf ~/.conda/envs/developer
37+
/miniconda/bin/conda env create -f environment.yml --prefix ~/.conda/envs/developer
38+
~/.conda/envs/developer/bin/python -m streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0
4039
elif [ -f "requirements.txt" ]; then
4140
/miniconda/bin/python -m pip install -r requirements.txt --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
4241
/miniconda/bin/python -m streamlit run $ENTRY --server.port=8501 --server.address=0.0.0.0

0 commit comments

Comments
 (0)