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}"]