aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-17 16:31:04 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-17 16:31:37 +0100
commit43ec5b7eab542fc2aef3c38d927d4ae43b79cc70 (patch)
tree2129ac20115688d41d01ed336853763aef14ac30
parentbd4e9c2d9d5ff05baabbd0faa8710c999076e02c (diff)
fpga-build: Make sure PATH is also set for non-root users
-rw-r--r--fpga-build/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile
index 8a19dfe..ec1e37f 100644
--- a/fpga-build/Dockerfile
+++ b/fpga-build/Dockerfile
@@ -34,4 +34,7 @@ RUN useradd --uid=1000 build
RUN mkdir /build
RUN chown build:build /build
+# ENV doesn't worrk for other users
+RUN echo "PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:\$PATH" >> /etc/environment
+
ENV PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:${PATH}