Skip to content

Commit

Permalink
restrict python version in deploy (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavchenko authored Oct 11, 2023
1 parent 7e45d56 commit 155b2e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nb2workflow/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,14 @@ def _nb2w_dockerfile_gen(context_dir, git_origin, source_from, meta, nb2wversion

if has_conda_env:
dockerfile_content += dedent(f"""
RUN micromamba install -y -n base -f /repo/environment.yml && \
RUN sed -i '/dependencies/a \ \ - python=3.10' /repo/environment.yml && \
micromamba install -y -n base -f /repo/environment.yml && \
micromamba install -y -n base -c conda-forge pip && \
micromamba clean --all --yes
""")
else:
dockerfile_content += dedent(f"""
RUN micromamba install -y -n base -c conda-forge python=3.9 pip && \
RUN micromamba install -y -n base -c conda-forge python=3.10 pip && \
micromamba clean --all --yes
""")

Expand Down

0 comments on commit 155b2e7

Please sign in to comment.