Skip to content

Commit f26516c

Browse files
committed
Re-order layers so we can cache tini
Signed-off-by: Sam Barker <sam@quadrocket.co.uk>
1 parent 88b17d7 commit f26516c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile.operator

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ ARG TARGETARCH
1111

1212
USER root
1313
WORKDIR /opt/kroxylicious
14-
COPY . .
15-
RUN mvn -q -B clean package -Pdist -Dquick
1614

1715
# Download Tini
1816
ENV TINI_VERSION=v0.19.0
@@ -39,6 +37,9 @@ RUN set -ex; \
3937
fi; \
4038
chmod +x ${TINI_DEST}
4139

40+
COPY . .
41+
RUN mvn -q -B clean package -Pdist -Dquick
42+
4243
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.2
4344

4445
ARG JAVA_VERSION=17
@@ -64,4 +65,4 @@ COPY --from=builder /opt/kroxylicious/kroxylicious-operator/target/kroxylicious-
6465

6566
USER ${CONTAINER_USER_UID}
6667

67-
ENTRYPOINT ["/usr/bin/tini", "--", "/opt/kroxylicious-operator/bin/operator-start.sh" ]
68+
ENTRYPOINT ["/usr/bin/tini", "--", "/opt/kroxylicious-operator/bin/operator-start.sh" ]

0 commit comments

Comments
 (0)