We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c4f41a commit b30765dCopy full SHA for b30765d
Dockerfile
@@ -44,17 +44,12 @@ RUN curl -LSs "https://github.com/scottchiefbaker/dool/archive/${DOOL_VERSION}.t
44
tar --strip-components=1 -xz && \
45
./install.py
46
47
-# Check if the group ID is already created
+# create group and user
48
ARG GROUP_ID
49
-RUN if ! getent group "$GROUP_ID"; then \
50
- addgroup --gid "$GROUP_ID" user; \
51
- fi
52
-
53
-# Check if the user ID is already created
54
ARG USER_ID
55
-RUN if ! getent passwd "$USER_ID"; then \
56
- adduser --disabled-password --gecos '' --gid "$GROUP_ID" --uid "$USER_ID" user; \
57
+
+RUN groupadd -g "$GROUP_ID" user || true && \
+ useradd -m -u "$USER_ID" -g "$GROUP_ID" -s /bin/bash user || true
58
59
ENV FWROOT=/FrameworkBenchmarks USER_ID="$USER_ID"
60
ENV PYTHONPATH="$FWROOT"
0 commit comments