Actually make /minecraft writeable

This commit is contained in:
Salt 2022-06-14 14:32:15 -05:00
parent 8d2c901978
commit 58e34860fd

View File

@ -39,7 +39,9 @@ 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}"
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 .
USER $USER