Makefile tweaks (#1410)

make CGO optional and fix a bug

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Josh Soref
2022-11-22 17:39:49 -05:00
committed by GitHub
parent cbe74dee34
commit e7c8ed00e6
2 changed files with 12 additions and 7 deletions

View File

@@ -1,8 +1,9 @@
# docker build --rm -f docker/Dockerfile.server -t woodpeckerci/woodpecker-server .
FROM golang:1.18-alpine as golang_image
FROM node:16-alpine
FROM node:18-alpine
RUN apk add make gcc musl-dev
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