woodpecker/docker/Dockerfile.make
Lauris BH 46452fbd84
Update Go dependencies and minimal Go version to 1.20 (#1650)
Signed-off-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@obermui.de>
2023-03-21 00:48:15 +01:00

19 lines
555 B
Makefile

# docker build --rm -f docker/Dockerfile.server -t woodpeckerci/woodpecker-server .
FROM golang:1.20-alpine as golang_image
FROM node:18-alpine
RUN apk add --no-cache --update make gcc binutils-gold musl-dev && \
corepack enable
# Build packages.
COPY --from=golang_image /usr/local/go /usr/local/go
ENV PATH=$PATH:/usr/local/go/bin
# Cache tools
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest && \
go install github.com/rs/zerolog/cmd/lint@latest && \
go install mvdan.cc/gofumpt@latest
WORKDIR /build
CMD [ "sh" ]