File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ 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
33
+ ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
34
+
31
35
# Environment setup
32
36
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
33
37
ENV XDG_RUNTIME_DIR="/run/user/1000"
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ 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
32
+ ENV PATH="/nix/store:$(find /nix/store -type d -path '*/bin' | paste -sd: -):$PATH"
33
+
30
34
# Environment setup
31
35
ENV PATH="/nix/var/nix/profiles/default/bin:$PATH"
32
36
ENV XDG_RUNTIME_DIR="/run/user/1000"
You can’t perform that action at this time.
0 commit comments