aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/controller/Dockerfile
blob: 8b48aa279abd0970f0442a1a94bfc928efe0e730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:1.24-alpine AS controller-builder

WORKDIR /build

# Prepare the dependencies.
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY pkg/gcs/ pkg/gcs/
COPY pkg/osutil/ pkg/osutil/

# Build the tool.
COPY syz-cluster/controller/ syz-cluster/controller/
COPY syz-cluster/pkg/ syz-cluster/pkg/
RUN go build -o /bin/controller /build/syz-cluster/controller

# Build the container.
FROM alpine:latest
WORKDIR /app

COPY --from=controller-builder /bin/controller /bin/controller

EXPOSE 8080

ENTRYPOINT ["/bin/controller"]