Skip to content

Commit cfcb9dc

Browse files
fabianonunesoktalz
authored andcommitted
MINOR: copies controller binary last, to favor caching and speed up the image build
1 parent 98d2b90 commit cfcb9dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ ENV S6_OVERLAY_VERSION $S6_OVERLAY_VERSION
4545
ENV S6_READ_ONLY_ROOT=1
4646

4747
COPY /fs /
48-
COPY --from=builder /src/fs/haproxy-ingress-controller .
4948

5049
RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
5150
rm -f /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
@@ -71,4 +70,6 @@ RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
7170
sed -i 's/ root / haproxy /g' /etc/s6/init/init-stage2-fixattrs.txt && \
7271
chmod ugo+x /etc/services.d/*/run /etc/cont-init.d/*
7372

73+
COPY --from=builder /src/fs/haproxy-ingress-controller .
74+
7475
ENTRYPOINT ["/start.sh"]

0 commit comments

Comments
 (0)