mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-01 22:31:15 +00:00
56a854fe14
* update github.com/docker/cli * update github.com/docker/distribution * update github.com/docker/docker * update github.com/gin-gonic/gin * update github.com/golang-jwt/jwt/v4 * update github.com/golangci/golangci-lint * update github.com/gorilla/securecookie * update github.com/mattn/go-sqlite3 * update github.com/moby/moby * update github.com/prometheus/client_golang * update github.com/xanzy/go-gitlab
15 lines
473 B
Docker
15 lines
473 B
Docker
ARG GO_VERSION
|
|
FROM golang:${GO_VERSION}-alpine AS builder
|
|
RUN apk add --update --no-cache ca-certificates make git curl gcc libc-dev
|
|
RUN mkdir -p /build
|
|
WORKDIR /build
|
|
COPY . /build/
|
|
RUN go mod download
|
|
RUN make build-linux
|
|
|
|
FROM golang:${GO_VERSION}-alpine
|
|
RUN apk add --update --no-cache ca-certificates bash git gcc libc-dev openssh
|
|
ENV GO111MODULE on
|
|
COPY --from=builder /build/gosec /bin/gosec
|
|
COPY entrypoint.sh /bin/entrypoint.sh
|
|
ENTRYPOINT ["/bin/entrypoint.sh"]
|