File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ RUN adduser -u 1000 -D -s /bin/bash movement
28
28
COPY --from=builder /tmp/build/target/release/movement /app/movement
29
29
COPY --from=builder /tmp/runtime/nix/store /nix/store
30
30
31
- # Build up runtime PATH from all bin directories in /nix/store
32
- RUN echo "export PATH=$(find /nix/store -type d -path '*/bin' | paste -sd: -):\$ PATH" >> /etc/profile.d/nix-path.sh
31
+ # Set up PATH to include all /nix/store/*/bin dirs
33
32
ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
34
33
35
34
# Environment setup
Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ RUN adduser -u 1000 -D -s /bin/bash mtma
27
27
COPY --from=builder /tmp/build/target/release/mtma /app/mtma
28
28
COPY --from=builder /tmp/runtime/nix/store /nix/store
29
29
30
- # Build up runtime PATH from all bin directories in /nix/store
31
- RUN echo "export PATH=$(find /nix/store -type d -path '*/bin' | paste -sd: -):\$ PATH" >> /etc/profile.d/nix-path.sh
30
+ # Set up PATH to include all /nix/store/*/bin dirs
32
31
ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
33
32
34
33
# Environment setup
You can’t perform that action at this time.
0 commit comments