File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,10 @@ ARG WILDFLY_VERSION=15.0.1
21
21
ARG JAVA_VERSION=8
22
22
23
23
# Because the source code is shared between the host and the container, it is required the identifier
24
- # of the owner is the same between this two environments. By default, it is set at 1000.
24
+ # of the owner and of its group are the same between this two environments. By default, they are both set at 1000.
25
+ # The user in the Docker container is also in the group users (id 100 by default)
25
26
ARG USER_ID=1000
27
+ ARG GROUP_ID=1000
26
28
27
29
COPY src/maven-deps.zip /tmp/
28
30
@@ -48,7 +50,8 @@ RUN apt-get update && apt-get install -y \
48
50
gpgv \
49
51
&& rm -rf /var/lib/apt/lists/* \
50
52
&& update-ca-certificates -f \
51
- && useradd -g users -u ${USER_ID} -d /home/silveruser -ms /bin/bash silveruser \
53
+ && groupadd -g ${GROUP_ID} silveruser \
54
+ && useradd -u ${USER_ID} -g ${GROUP_ID} -G users -d /home/silveruser -s /bin/bash -m silveruser \
52
55
&& mkdir -p /usr/share/maven /usr/share/maven/ref \
53
56
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
54
57
&& echo "${MAVEN_SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - \
You can’t perform that action at this time.
0 commit comments