meshmap.net/Dockerfile.meshobserv
2024-05-06 18:47:19 -04:00

12 lines
261 B
Docker

FROM golang:latest AS build
WORKDIR /build
COPY go.mod ./
COPY cmd/meshobserv ./
COPY internal ./internal/
RUN go mod tidy
RUN go build -v -o meshobserv
FROM debian:bookworm-slim
COPY --from=build /build/meshobserv /usr/bin/
ENTRYPOINT ["/usr/bin/meshobserv"]