aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
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"]