aboutsummaryrefslogtreecommitdiff
path: root/tests/docker/dockerfiles/debian-mips64-cross.docker
diff options
context:
space:
mode:
Diffstat (limited to 'tests/docker/dockerfiles/debian-mips64-cross.docker')
-rw-r--r--tests/docker/dockerfiles/debian-mips64-cross.docker5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/docker/dockerfiles/debian-mips64-cross.docker b/tests/docker/dockerfiles/debian-mips64-cross.docker
index afcff9726f..ba965cf564 100644
--- a/tests/docker/dockerfiles/debian-mips64-cross.docker
+++ b/tests/docker/dockerfiles/debian-mips64-cross.docker
@@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
eatmydata apt-get install --no-install-recommends -y \
gcc-mips64-linux-gnuabi64 \
libc6-dev-mips64-cross
+# As a final step configure the user (if env is defined)
+ARG USER
+ARG UID
+RUN if [ "${USER}" ]; then \
+ id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi