Fix invocation of addgroup and adduser
Hopefully really this time
This commit is contained in:
parent
07c8bfd165
commit
8d2c901978
@ -38,8 +38,8 @@ ARG GROUP
|
||||
|
||||
# Build the thing up
|
||||
RUN apk add bash curl findutils rsync screen "${JRE_VERSION}"
|
||||
RUN addgroup -g "${GID}" "${USER}" && \
|
||||
adduser -h /minecraft -s /bin/sh -G "${GROUP}" -D -H -u "${UID}"
|
||||
RUN addgroup -g "${GID}" "${GROUP}" && \
|
||||
adduser -h /minecraft -s /bin/sh -D -H -u "${UID}" -G "${GROUP}" "${USER}"
|
||||
WORKDIR /minecraft
|
||||
COPY --from=build /minecraft .
|
||||
USER $USER
|
||||
|
Loading…
Reference in New Issue
Block a user