diff options
author | Harald Welte <laforge@osmocom.org> | 2020-12-17 16:31:04 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-17 16:31:37 +0100 |
commit | 43ec5b7eab542fc2aef3c38d927d4ae43b79cc70 (patch) | |
tree | 2129ac20115688d41d01ed336853763aef14ac30 | |
parent | bd4e9c2d9d5ff05baabbd0faa8710c999076e02c (diff) |
fpga-build: Make sure PATH is also set for non-root users
Change-Id: I16bf9c8cafbad85a6ec77f17b034c73f530565b9
-rw-r--r-- | fpga-build/Dockerfile | 3 |
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} |