2022-02-10 16:12:47 +02:00
|
|
|
# docker build --rm -f docker/Dockerfile.server -t woodpeckerci/woodpecker-server .
|
2022-06-17 01:57:02 +02:00
|
|
|
FROM golang:1.18-alpine as golang_image
|
2022-11-23 00:39:49 +02:00
|
|
|
FROM node:18-alpine
|
2022-02-10 16:12:47 +02:00
|
|
|
|
2022-11-23 00:39:49 +02:00
|
|
|
RUN apk add --no-cache --update make gcc binutils-gold musl-dev && \
|
|
|
|
corepack enable
|
2022-02-10 16:12:47 +02:00
|
|
|
|
|
|
|
# Build packages.
|
|
|
|
COPY --from=golang_image /usr/local/go /usr/local/go
|
|
|
|
ENV PATH=$PATH:/usr/local/go/bin
|
|
|
|
|
2022-06-17 01:57:02 +02:00
|
|
|
# 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
|
|
|
|
|
2022-02-10 16:12:47 +02:00
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
CMD [ "sh" ]
|