From c86a79b46e966512f51d0503038422b0748388f5 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Wed, 16 Oct 2024 13:04:59 +0100 Subject: [PATCH] Take 3 --- .dockerignore | 1 + Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 84b16af..d426974 100644 --- a/.dockerignore +++ b/.dockerignore @@ -29,6 +29,7 @@ /bin /target !/target/**/monzo-ingestion +!/target/**/test-binary /.idea LICENSE README.md diff --git a/Dockerfile b/Dockerfile index a15655a..84edc52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM debian:bullseye-slim AS builder +FROM busybox as platform_determiner ARG TARGETPLATFORM ARG BINARY_NAME WORKDIR /app @@ -12,5 +12,5 @@ RUN case "$TARGETPLATFORM" in \ FROM --platform=$TARGETPLATFORM debian:bullseye-slim ARG BINARY_NAME -COPY --from=builder /usr/local/bin/${BINARY_NAME} /usr/local/bin/ +COPY --from=platform_determiner /usr/local/bin/${BINARY_NAME} /usr/local/bin/${BINARY_NAME} ENTRYPOINT ["/usr/local/bin/${BINARY_NAME}"]