From bed868435283aa2a1ccc3f01efa4c366f7bd24bc Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 14 Jun 2022 14:33:13 -0500 Subject: [PATCH] Actually wait let's reorder those args --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17c15b5..c219c1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,12 +38,11 @@ ARG GROUP # Build the thing up RUN apk add bash curl findutils rsync screen "${JRE_VERSION}" -RUN addgroup -g "${GID}" "${GROUP}" && \ - adduser -h /minecraft -s /bin/sh -D -H -u "${UID}" -G "${GROUP}" "${USER}" && \ - mkdir /minecraft && \ - chown "${USER}:${GROUP}" /minecraft WORKDIR /minecraft COPY --from=build /minecraft . +RUN addgroup -g "${GID}" "${GROUP}" && \ + adduser -h /minecraft -s /bin/sh -D -H -u "${UID}" -G "${GROUP}" "${USER}" && \ + chown "${USER}:${GROUP}" /minecraft USER $USER CMD [ "bash", "start-server.sh" ] EXPOSE 25565