diff options
| author | Max Resnick <max@ofmax.li> | 2025-03-03 21:42:57 -0800 |
|---|---|---|
| committer | Max Resnick <max@ofmax.li> | 2025-03-03 21:42:57 -0800 |
| commit | e31be2ef1be5745e4af74def945e694ea1bd4fe9 (patch) | |
| tree | 421bc259d7d81027f6d4cedbf98d5c217341fcd7 /Dockerfile | |
| parent | b62450b18522f33c27cd67ff0191a42908e88bb1 (diff) | |
| download | unbound-adblock-config-e31be2ef1be5745e4af74def945e694ea1bd4fe9.tar.gz | |
feat: add Dockerfile and justfile
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 15 |
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"] |