Skip to content

Commit

Permalink
[R] Fix: Dockerfile should source environment for global defaults (#6823
Browse files Browse the repository at this point in the history
)
  • Loading branch information
achave11-ucsc committed Jan 23, 2025
1 parent 3c617c5 commit d46bcfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!Makefile
!common.mk
!requirements*.txt
!environment
!bin/keys/docker-apt-keyring.pgp
# FIXME: Remove fips_enabled
# https://github.com/DataBiosphere/azul/issues/6675
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ RUN --mount=type=bind,source=fips_enabled,target=${azul_proc_sys_crypto}/fips_en
#
RUN mkdir /build
WORKDIR /build
ENV project_root=/build

# Install Azul dependencies
#
ARG PIP_DISABLE_PIP_VERSION_CHECK
ENV PIP_DISABLE_PIP_VERSION_CHECK=${PIP_DISABLE_PIP_VERSION_CHECK}
COPY requirements*.txt common.mk Makefile ./
COPY environment requirements*.txt common.mk Makefile ./
ARG make_target
RUN make virtualenv \
RUN source environment \
&& make virtualenv \
&& source .venv/bin/activate \
&& make $make_target \
&& rm requirements*.txt common.mk Makefile

0 comments on commit d46bcfb

Please sign in to comment.