aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2020-12-17 14:36:24 +0000
committerHarald Welte <laforge@osmocom.org>2020-12-17 15:37:15 +0100
commitbd4e9c2d9d5ff05baabbd0faa8710c999076e02c (patch)
tree3edee44706e2705c15cd741a2c3a155d9585873d
parent7500aebce7715481b76cf980d0488b80015fcd69 (diff)
fpga-build: Create 'build' user like in 'debian-stretch-jenkins'
-rw-r--r--fpga-build/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile
index 620657a..8a19dfe 100644
--- a/fpga-build/Dockerfile
+++ b/fpga-build/Dockerfile
@@ -29,8 +29,9 @@ RUN wget --quiet https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/r
RUN tar -C /opt -xf /xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz && \
rm xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz
-RUN useradd -m osmocom
-USER osmocom
-WORKDIR /home/osmocom
+# match the outside user
+RUN useradd --uid=1000 build
+RUN mkdir /build
+RUN chown build:build /build
ENV PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:${PATH}