From 669abdf69059bc84c6721dcecf82bc1906717393 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 14 Jul 2023 16:14:00 +0200 Subject: [PATCH] Add makefile to make container and .pnpn-store to gitignore (#1996) Running `make in_docker ...` on a fresh system failed: ``` => CACHED [stage-1 3/6] COPY --from=golang_image /usr/local/go /usr/local/go 0.0s => ERROR [stage-1 4/6] RUN make install-tools && mv /root/go/bin/* /usr/local/go/bin/ && chmod 755 /usr/local/go/bin/* 0.1s ------ > [stage-1 4/6] RUN make install-tools && mv /root/go/bin/* /usr/local/go/bin/ && chmod 755 /usr/local/go/bin/*: 0.132 make: *** No rule to make target 'install-tools'. Stop. ------ Dockerfile.make:14 -------------------- 13 | # Cache tools 14 | >>> RUN make install-tools && \ 15 | >>> mv /root/go/bin/* /usr/local/go/bin/ && \ 16 | >>> chmod 755 /usr/local/go/bin/* 17 | -------------------- ``` Fixed after adding the Makefile to the make container. --- .gitignore | 1 + docker/Dockerfile.make | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index fbbc08e30..5b6c87da9 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ docker-compose.yml *.sqlite *.out /.env +/.pnpm-store extras/ /build/ /dist/ diff --git a/docker/Dockerfile.make b/docker/Dockerfile.make index a668e5499..f84c23651 100644 --- a/docker/Dockerfile.make +++ b/docker/Dockerfile.make @@ -7,6 +7,7 @@ RUN apk add --no-cache --update make gcc binutils-gold musl-dev && \ # Build packages. COPY --from=golang_image /usr/local/go /usr/local/go +COPY Makefile / ENV PATH=$PATH:/usr/local/go/bin # Cache tools