File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,12 @@ RUN curl -LSs "https://github.com/scottchiefbaker/dool/archive/${DOOL_VERSION}.t
44
44
tar --strip-components=1 -xz && \
45
45
./install.py
46
46
47
- # Check if the group ID is already created
47
+ # create group and user
48
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
49
ARG USER_ID
55
- RUN if ! getent passwd "$USER_ID" ; then \
56
- adduser --disabled-password --gecos '' --gid "$GROUP_ID" --uid "$USER_ID" user; \
57
- fi
50
+
51
+ RUN groupadd -g "$GROUP_ID" user || true && \
52
+ useradd -m -u "$USER_ID" -g "$GROUP_ID" -s /bin/bash user || true
58
53
59
54
ENV FWROOT=/FrameworkBenchmarks USER_ID="$USER_ID"
60
55
ENV PYTHONPATH="$FWROOT"
You can’t perform that action at this time.
0 commit comments