Draft, peer selection done, search in progress

This commit is contained in:
ycc
2023-03-10 11:28:38 +01:00
parent e3719fb08b
commit 87a1759ac4
17 changed files with 898 additions and 1 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM golang:alpine as builder
WORKDIR /app
COPY . .
RUN apk add git
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" .
RUN ls /app
FROM scratch
WORKDIR /app
COPY --from=builder /app/oc-discovery /usr/bin/
COPY docker_aggregator.json /etc/oc/aggregator.json
EXPOSE 8080
ENTRYPOINT ["oc-aggregator"]