From 654a865590720e24ecb554a47840114063a9f8ed Mon Sep 17 00:00:00 2001 From: ndom91 Date: Thu, 8 Aug 2024 10:13:56 +0200 Subject: [PATCH] fix: add dockerignore --- .dockerignore | 2 ++ Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..aec67d381 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +target +node_modules diff --git a/Dockerfile b/Dockerfile index ec835adfd..42b4cb0af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN corepack enable pnpm && corepack install # the tests will eventually run # TODO: It would be great to be able to avoid building this here, but we need: # - a binary based on the current state of the source code on the persons machine -# - a binary built for their current arch (i.e. amd64/aarch64) +# - a binary built for their current arch (i.e. amd64/aarch64) (? Maybe docker + rosetta makes this a non-issue) RUN --mount=type=bind,source=.,target=/build,rw \ pnpm build:test