Skip to content

Commit 60c827e

Browse files
authored
Merge pull request #263 from oda-hub/hotfix-docker-build-1
Fix no requirements case
2 parents 791c3e7 + 2240f76 commit 60c827e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nb2workflow/templates/Dockerfile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ RUN micromamba install -y -n base -c conda-forge python={{ default_python_versio
3939
micromamba clean --all --yes
4040
{% endif %}
4141
ARG MAMBA_DOCKERFILE_ACTIVATE=1
42-
RUN [[ -f /repo/requirements.txt ]] && pip install -r /repo/requirements.txt
42+
RUN [ -f /repo/requirements.txt ] && pip install -r /repo/requirements.txt || :
4343
{% endif %}
4444

4545
RUN pip install {{ nb2w_version_spec }}

0 commit comments

Comments
 (0)