This commit is contained in:
Hyatt 2021-12-09 09:38:45 -06:00
parent 6c794f1139
commit dda7b0485c
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

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