From e31be2ef1be5745e4af74def945e694ea1bd4fe9 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Mon, 3 Mar 2025 21:42:57 -0800 Subject: feat: add Dockerfile and justfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e94a18d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM public.ecr.aws/s0f9o2k5/just:v0.0.1 AS just +FROM golangci/golangci-lint:latest AS golint +FROM golang:bookworm AS build +ARG version +COPY --from=just /just /usr/local/bin/just +COPY --from=golint /usr/bin/golangci-lint /usr/bin/golangci-lint +COPY . /build +WORKDIR /build +RUN just build $version + + +FROM scratch +COPY --from=build /build/_build/bin/unbound-ads /unbound-ads +WORKDIR / +CMD ["unbound-ads"] -- cgit v1.2.3