Skip to content

Commit

Permalink
Dockerfile: try source set_env_vars.sh both before and after first la…
Browse files Browse the repository at this point in the history
…ke command?

Signed-off-by: Craig Disselkoen <cdiss@amazon.com>
  • Loading branch information
cdisselkoen committed Feb 7, 2025
1 parent e7a7e8c commit 8935c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN git clone --depth 1 https://github.com/cedar-policy/cedar

# Build the Lean formalization and extract to static C libraries
WORKDIR $CEDAR_SPEC_ROOT/cedar-lean
RUN source /root/.profile && elan default "$(cat lean-toolchain)" && lake clean && source ../cedar-drt/set_env_vars.sh && ../cedar-drt/build_lean_lib.sh
RUN source /root/.profile && elan default "$(cat lean-toolchain)" && source ../cedar-drt/set_env_vars.sh && lake clean && source ../cedar-drt/set_env_vars.sh && ../cedar-drt/build_lean_lib.sh

# Build DRT
WORKDIR $CEDAR_SPEC_ROOT/cedar-drt
Expand Down

0 comments on commit 8935c27

Please sign in to comment.