woodpecker/docker/Dockerfile.make

21 lines
504 B
Docker
Raw Normal View History

2023-06-06 16:29:40 +00:00
# docker build --rm -f docker/Dockerfile.make -t woodpecker/make:local .
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
2023-06-06 16:29:40 +00:00
RUN make install-tools && \
mv /root/go/bin/* /usr/local/go/bin/ && \
chmod 755 /usr/local/go/bin/*
WORKDIR /build
2023-06-06 16:29:40 +00:00
RUN chmod -R 777 /root
2023-06-06 16:29:40 +00:00
CMD [ "/bin/sh" ]