mirror of
https://github.com/brianshea2/meshmap.net.git
synced 2024-11-14 01:24:13 -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"]
|