From 37ea59bb872aa4b782df3059b1d6e5073ae77cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A9renger=20Dalle-Cort?= Date: Mon, 29 Apr 2024 22:16:45 -0400 Subject: [PATCH] feat(webui): add .dockerignore to skip node_modules and .next --- webui/.dockerignore | 3 +++ webui/Dockerfile.standalone | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 webui/.dockerignore diff --git a/webui/.dockerignore b/webui/.dockerignore new file mode 100644 index 0000000..bb11f3c --- /dev/null +++ b/webui/.dockerignore @@ -0,0 +1,3 @@ +node_modules +.next +README.md \ No newline at end of file diff --git a/webui/Dockerfile.standalone b/webui/Dockerfile.standalone index 903e511..b87d836 100644 --- a/webui/Dockerfile.standalone +++ b/webui/Dockerfile.standalone @@ -7,7 +7,7 @@ WORKDIR /app # Install dependencies COPY package.json package-lock.json ./ -RUN npm ci; +RUN npm ci # Rebuild the source code only when needed FROM base AS builder