|
@@ -1,5 +1,7 @@
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
+ARG USER_ID
|
|
|
+ARG GROUP_ID
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
# WARNING: DON'T PUT A SPACE AFTER ANY BACKSLASH OR APT WILL BREAK
|
|
|
# One -q produces output suitable for logging (mostly hides
|
|
@@ -29,4 +31,9 @@ RUN apt-get -yqq update && apt-get -yqq install \
|
|
|
|
|
|
ENV FWROOT=/FrameworkBenchmarks PYTHONPATH=/FrameworkBenchmarks
|
|
|
|
|
|
+# Drop permissions of user to match those of the host system
|
|
|
+RUN addgroup --gid $GROUP_ID user
|
|
|
+RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user
|
|
|
+USER user
|
|
|
+
|
|
|
ENTRYPOINT ["python", "/FrameworkBenchmarks/toolset/run-tests.py"]
|