woodpecker/docker/Dockerfile.make

26 lines
638 B
Docker
Raw Permalink Normal View History

2023-06-06 16:29:40 +00:00
# docker build --rm -f docker/Dockerfile.make -t woodpecker/make:local .
2024-10-30 13:21:50 +00:00
FROM docker.io/golang:1.23-alpine as golang_image
FROM docker.io/node:23-alpine
2024-10-30 13:21:50 +00:00
RUN apk add --no-cache --update make gcc binutils-gold musl-dev protoc && \
corepack enable
# Build packages.
COPY --from=golang_image /usr/local/go /usr/local/go
COPY Makefile /
ENV PATH=$PATH:/usr/local/go/bin
2024-04-26 05:51:10 +00:00
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
# Cache tools
2024-04-15 15:46:44 +00:00
RUN GOBIN=/usr/local/go/bin make install-tools && \
rm -rf /Makefile
ENV GOPATH=/tmp/go
ENV HOME=/tmp/home
ENV PATH=$PATH:/usr/local/go/bin:/tmp/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" ]