Skip to content
Snippets Groups Projects
Dockerfile 388 B
Newer Older
  • Learn to ignore specific revisions
  • FROM golang:1.19.3-alpine3.15 as builder
    
    WORKDIR /go/src/gitlab.com/gaia-x/data-infrastructure-federation-services/tsa/task
    
    
    ADD . .
    
    RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.Version=$(git describe --tags --always)" -mod=vendor -o /tmp/task ./cmd/task/...
    
    FROM alpine:3.15 as runner
    
    COPY --from=builder /tmp/task /opt/task
    
    WORKDIR /opt
    
    CMD ["./task"]