Actually wait let's reorder those args

This commit is contained in:
Salt 2022-06-14 14:33:13 -05:00
parent 58e34860fd
commit bed8684352
1 changed files with 3 additions and 4 deletions

View File

@ -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