Quote variables, actually scope in our arguments
This commit is contained in:
parent
30802403cc
commit
07c8bfd165
@ -31,11 +31,15 @@ FROM alpine:latest AS final
|
|||||||
|
|
||||||
# Use only a subset of arguments
|
# Use only a subset of arguments
|
||||||
ARG JRE_VERSION
|
ARG JRE_VERSION
|
||||||
|
ARG UID
|
||||||
|
ARG USER
|
||||||
|
ARG GID
|
||||||
|
ARG GROUP
|
||||||
|
|
||||||
# Build the thing up
|
# Build the thing up
|
||||||
RUN apk add bash curl findutils rsync screen "${JRE_VERSION}"
|
RUN apk add bash curl findutils rsync screen "${JRE_VERSION}"
|
||||||
RUN addgroup -g $GID $USER && \
|
RUN addgroup -g "${GID}" "${USER}" && \
|
||||||
adduser -h /minecraft -s /bin/sh -G $GROUP -D -H -u $UID
|
adduser -h /minecraft -s /bin/sh -G "${GROUP}" -D -H -u "${UID}"
|
||||||
WORKDIR /minecraft
|
WORKDIR /minecraft
|
||||||
COPY --from=build /minecraft .
|
COPY --from=build /minecraft .
|
||||||
USER $USER
|
USER $USER
|
||||||
|
Loading…
Reference in New Issue
Block a user