Adds ARG
This commit is contained in:
parent
6c794f1139
commit
dda7b0485c
@ -82,9 +82,10 @@ spec:
|
||||
stage ("Create Dockerfile") {
|
||||
// Set dockerfile
|
||||
def dockerFile = """
|
||||
|
||||
FROM ${buildImage}:${buildImageTag} as builder
|
||||
|
||||
ARG paperDownload
|
||||
|
||||
RUN addgroup -S -g 1000 minecraft && \\
|
||||
adduser --disabled-password -G minecraft --gecos "application account" --home "/minecraft" --shell "/sbin/nologin" --uid 1000 minecraft && \\
|
||||
apk add --no-cache curl && \\
|
||||
@ -94,6 +95,8 @@ RUN addgroup -S -g 1000 minecraft && \\
|
||||
|
||||
FROM gcr.io/distroless/java17:latest
|
||||
|
||||
MAINTAINER The_Spider <spider@smoothnet.org>
|
||||
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=builder /etc/passwd /etc/group /etc/
|
||||
COPY --from=builder --chown=minecraft:minecraft /minecraft/ /minecraft/
|
||||
|
Reference in New Issue
Block a user