From d74a549b891168cddb909a2974c824f0458b15a6 Mon Sep 17 00:00:00 2001 From: wancat Date: Tue, 27 Feb 2024 12:53:44 +0800 Subject: [PATCH] fix: docker --- app/Dockerfile | 4 +--- app/package.json | 1 + app/tsconfig.json | 1 - app/tsconfig.node.json | 10 ---------- server/Dockerfile | 4 ---- 5 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 app/tsconfig.node.json diff --git a/app/Dockerfile b/app/Dockerfile index 506854c..e5e4888 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -20,9 +20,7 @@ COPY packages/file-graph ./packages/file-graph COPY packages/utils ./packages/utils COPY packages/constants ./packages/constants COPY app ./app -RUN yarn workspace @linux-odyssey/file-graph build -RUN yarn workspace @linux-odyssey/utils build -RUN yarn workspace @linux-odyssey/constants build +RUN yarn workspace app build:refs RUN yarn workspace app build # Production stage diff --git a/app/package.json b/app/package.json index a91c765..cce0b82 100644 --- a/app/package.json +++ b/app/package.json @@ -6,6 +6,7 @@ "dev": "vite", "dev:docker": "API_TARGET=http://backend:3000 vite", "build": "vite build", + "build:refs": "tsc --build", "preview": "vite preview" }, "dependencies": { diff --git a/app/tsconfig.json b/app/tsconfig.json index dc7801a..9a196d6 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -23,7 +23,6 @@ }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "src/**/*.js"], "references": [ - { "path": "./tsconfig.node.json" }, { "path": "../packages/utils" }, { "path": "../packages/constants" }, { "path": "../packages/file-graph" } diff --git a/app/tsconfig.node.json b/app/tsconfig.node.json deleted file mode 100644 index 42872c5..0000000 --- a/app/tsconfig.node.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "composite": true, - "skipLibCheck": true, - "module": "ESNext", - "moduleResolution": "bundler", - "allowSyntheticDefaultImports": true - }, - "include": ["vite.config.ts"] -} diff --git a/server/Dockerfile b/server/Dockerfile index 70d5145..32361c6 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -26,10 +26,6 @@ COPY server ./server COPY quests ./quests ENV NODE_ENV=production -RUN yarn workspace @linux-odyssey/file-graph build -RUN yarn workspace @linux-odyssey/utils build -RUN yarn workspace @linux-odyssey/models build -RUN yarn workspace @linux-odyssey/constants build RUN yarn workspace server build WORKDIR /app/server CMD [ "yarn", "start" ]