livetrace/Dockerfile
Eliezer Croitoru bc603c289f V1
2026-08-07 12:27:43 +03:00

18 lines
411 B
Docker

FROM golang:latest AS builder
WORKDIR /app/src
COPY src/ .
RUN go mod init ngtech.co.il/network/livtrace && go mod tidy
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -ldflags="-s -w" -o /out/myapp-linux-amd64 .
RUN CGO_ENABLED=0 GOOS=windows GOARCH=amd64 \
go build -ldflags="-s -w" -o /out/myapp-windows-amd64.exe .
# Stage 2: Export target
FROM scratch AS bin
COPY --from=builder /out/ /