File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ COPY --from=target / /target
27
27
28
28
RUN set -euo pipefail; \
29
29
export PERMCTL_ALLOW_INSECURE_MODE_IF_NO_PROC=1; \
30
- zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients
30
+ zypper -n --installroot /target --gpg-auto-import-keys install --no-recommends git-core openssh-clients shadow
31
+ # create the user and group with the given ids
32
+ RUN set -euo pipefail; \
33
+ groupadd -R /target -g 1000 -r git; \
34
+ useradd -R /target -u 1000 -g 1000 -m -r -s /bin/bash git
31
35
# sanity check that the version from the tag is equal to the version of git-core that we expect
32
36
RUN set -euo pipefail; \
33
37
[ "$(rpm --root /target -q --qf '%{version}' git-core | \
You can’t perform that action at this time.
0 commit comments