-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 805 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:1.24-bullseye AS builder
WORKDIR /app
COPY . .
ENV CGO_ENABLED=1 GOOS=linux
RUN go install github.com/antithesishq/antithesis-sdk-go/tools/antithesis-go-instrumentor@latest \
&& mkdir ../gen \
&& $(go env GOPATH)/bin/antithesis-go-instrumentor . ../gen \
&& cd ../gen/customer \
&& go build -o status-checker .
# https://hub.docker.com/r/minhdvu/toolbox
# https://github.com/0xPolygon/kurtosis-cdk/blob/main/docker/toolbox.Dockerfile
FROM europe-west2-docker.pkg.dev/prj-polygonlabs-devtools-dev/public/toolbox:0.0.12
COPY --from=builder /gen/customer/status-checker /usr/bin/status-checker
COPY --from=builder /gen/symbols/ /symbols/
RUN apt-get update && \
apt-get install -y --no-install-recommends golang-go && \
rm -rf /var/lib/apt/lists/*
EXPOSE 9090
CMD ["status-checker"]