10
vendor/github.com/guptarohit/asciigraph/Dockerfile
generated
vendored
Normal file
10
vendor/github.com/guptarohit/asciigraph/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM golang:1.23-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY cmd ./cmd
|
||||
COPY go.mod ./
|
||||
COPY *.go ./
|
||||
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /app/asciigraph ./cmd/asciigraph/main.go
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /app/asciigraph /asciigraph
|
||||
ENTRYPOINT ["/asciigraph"]
|
||||
Reference in New Issue
Block a user