mirror of
https://github.com/waku-org/telemetry.git
synced 2025-01-20 04:48:49 +00:00
add Dockerfile for deployments
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
aef686cf70
commit
82c72d2301
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
*.md
|
||||
hooks/
|
||||
build/
|
||||
Dockerfile
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM golang:1.15-alpine AS builder
|
||||
|
||||
RUN apk add --no-cache make
|
||||
|
||||
RUN mkdir -p /go/src/github.com/status-im/telemetry
|
||||
WORKDIR /go/src/github.com/status-im/telemetry
|
||||
ADD . .
|
||||
RUN make build
|
||||
|
||||
# Copy the binary to the second image
|
||||
FROM alpine:3.14
|
||||
|
||||
LABEL maintainer="jakub@status.im"
|
||||
LABEL source="https://github.com/status-im/telemetry"
|
||||
LABEL description="Opt-in message reliability metrics service"
|
||||
|
||||
COPY --from=builder /go/src/github.com/status-im/telemetry/build/server /usr/local/bin/telemetry
|
||||
|
||||
EXPOSE 8080/tcp
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/telemetry"]
|
||||
CMD ["-help"]
|
Loading…
x
Reference in New Issue
Block a user