fix: docker

This commit is contained in:
wancat committed 2024-04-05 22:42:02 +08:00
1 parent 33a1a110e8
commit d74a549b89
5 files changed
+2 -18

No files matched your search

+1 -3
View File
@@ -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
+1
View File
@@ -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": {
-1
View File
@@ -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" }
-10
View File
@@ -1,10 +0,0 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
-4
View File
@@ -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" ]