From 3432cde4f6639aabd19aac880aa86bfa39153f39 Mon Sep 17 00:00:00 2001 From: lby Date: Fri, 13 Dec 2024 13:13:21 +0800 Subject: [PATCH] chore: add bind mounts tailwind and postcss config on docker build for web (#1314) --- web/.dockerignore | 2 ++ web/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/web/.dockerignore b/web/.dockerignore index 785590e778..cddb995b87 100644 --- a/web/.dockerignore +++ b/web/.dockerignore @@ -11,3 +11,5 @@ !published.html !vite.config.ts !yarn.lock +!tailwind.config.js +!postcss.config.js diff --git a/web/Dockerfile b/web/Dockerfile index bec0c485e6..ca13656c5d 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -23,6 +23,8 @@ RUN --mount=type=bind,source=.yarnrc.yml,target=.yarnrc.yml \ --mount=type=bind,source=published.html,target=published.html \ --mount=type=bind,source=tsconfig.json,target=tsconfig.json \ --mount=type=bind,source=vite.config.ts,target=vite.config.ts \ + --mount=type=bind,source=tailwind.config.js,target=tailwind.config.js \ + --mount=type=bind,source=postcss.config.js,target=postcss.config.js \ --mount=type=bind,source=src,target=src \ --mount=type=cache,target=/root/.yarn,sharing=locked \ yarn build