mirror of
https://github.com/brianshea2/meshmap.net.git
synced 2024-11-13 17:14:23 -08:00
12 lines
261 B
Docker
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"]
|