fpga-build: Make sure PATH is also set for non-root users

Change-Id: I16bf9c8cafbad85a6ec77f17b034c73f530565b9
Harald Welte 2020-12-17 16:31:04 +01:00
parent bd4e9c2d9d
commit 43ec5b7eab
1 changed files with 3 additions and 0 deletions

View File

@ -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}