Skip to content
Snippets Groups Projects
Select Git revision
  • 2d864ef5282cb954b2511d3fe8a0bfb1e7350b84
  • manjaro default
  • fedora
  • master protected
  • 20.04
  • 19.10
  • 18.04.3
7 results

packages

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Containerfile 504 B
    FROM docker.io/library/golang:1-alpine AS build
    
    ARG GOARCH="amd64"
    ARG GOARM=""
    
    WORKDIR /workspace
    
    ENV GOPATH="/workspace/.go"
    
    COPY . .
    
    RUN go mod download
    
    RUN CGO_ENABLED=0 GOARCH=$GOARCH GOARM=$GOARM go build -v -o webhook -ldflags '-w -s -extldflags "-static"' .
    
    FROM docker.io/library/alpine:edge
    
    WORKDIR /workdir
    
    COPY . .
    
    COPY --from=build /workspace/webhook /webhook
    
    RUN apk --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add delve
    
    # ENTRYPOINT ["/webhook"]