woodpecker/docker/Dockerfile.make
renovate[bot] 4a7203f097
chore(deps): update golang docker tag (#2396)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-08 17:01:26 +02:00

21 lines
520 B
Makefile

# docker build --rm -f docker/Dockerfile.make -t woodpecker/make:local .
FROM golang:1.21-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
COPY Makefile /
ENV PATH=$PATH:/usr/local/go/bin
# Cache tools
RUN make install-tools && \
mv /root/go/bin/* /usr/local/go/bin/ && \
chmod 755 /usr/local/go/bin/*
WORKDIR /build
RUN chmod -R 777 /root
CMD [ "/bin/sh" ]