11 lines
167 B
Docker
11 lines
167 B
Docker
FROM golang:alpine3.22 AS prep-image
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /logfly
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=prep-image /logfly /logfly
|
|
|
|
CMD ["/logfly"]
|