feat: dockerfile

This commit is contained in:
Richard Ramos 2024-05-16 19:12:19 -04:00
parent b2f0f94575
commit 2ec3fcb7ae
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM golang:1.20 as builder
RUN mkdir -p /go/src/github.com/waku-org/storenode-messages
WORKDIR /go/src/github.com/waku-org/storenode-messages
ADD . .
RUN make
# Copy the binary to the second image
FROM debian:12.5-slim
LABEL maintainer="richard@status.im"
LABEL source="https://github.com/waku-org/storenode-messages"
LABEL description="Storenode message count verifier"
COPY --from=builder /go/src/github.com/waku-org/storenode-messages/build/storeverif /usr/local/bin/storeverif
ENTRYPOINT ["/usr/local/bin/storeverif"]
CMD ["-help"]