diff --git a/Dockerfile.build-env b/Dockerfile.build-env index edbc33be..6819e3b8 100644 --- a/Dockerfile.build-env +++ b/Dockerfile.build-env @@ -11,7 +11,11 @@ ARG WEBKIT_API=4.0 ARG WAILS_VERSION=v2.11.0 ENV DEBIAN_FRONTEND=noninteractive -ENV PATH=/root/go/bin:/usr/local/go/bin:${PATH} +ENV PATH=/go/bin:/usr/local/go/bin:${PATH} + +# Debian's /etc/profile resets PATH in login shells (bash -l), dropping the Go +# toolchain; restore it via profile.d which is sourced after that reset. +RUN printf 'export PATH=/go/bin:/usr/local/go/bin:$PATH\n' > /etc/profile.d/10-gonavi-build-env.sh # Copy only Node.js runtime assets so the Go toolchain from the base image # stays intact for smoke tests and interactive build shells.