feat: deploy update
This commit is contained in:
@@ -10,7 +10,12 @@
|
|||||||
"Bash(scp web/src/components/Output.tsx ubuntu@118.195.187.179:/opt/1panel/apps/sub-router/web/src/components/Output.tsx)",
|
"Bash(scp web/src/components/Output.tsx ubuntu@118.195.187.179:/opt/1panel/apps/sub-router/web/src/components/Output.tsx)",
|
||||||
"Bash(scp:*)",
|
"Bash(scp:*)",
|
||||||
"Bash(./node_modules/.bin/tsc --noEmit)",
|
"Bash(./node_modules/.bin/tsc --noEmit)",
|
||||||
"Bash(../node_modules/.bin/tsc --noEmit)"
|
"Bash(../node_modules/.bin/tsc --noEmit)",
|
||||||
|
"Skill(browser-use)",
|
||||||
|
"Bash(pip show:*)",
|
||||||
|
"Bash(pip3 show:*)",
|
||||||
|
"WebFetch(domain:ai.njcqtechaicoding.com)",
|
||||||
|
"Bash(CLAUDE_SKILL_DIR=/Users/kid/.claude/skills/web-access node:*)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
Dockerfile
13
Dockerfile
@@ -1,20 +1,25 @@
|
|||||||
FROM node:22-slim AS frontend
|
FROM node:22-slim AS frontend
|
||||||
|
RUN corepack enable pnpm
|
||||||
WORKDIR /app/web
|
WORKDIR /app/web
|
||||||
COPY web/package.json ./
|
COPY web/package.json ./
|
||||||
RUN npm install
|
RUN pnpm install
|
||||||
COPY web/ ./
|
COPY web/ ./
|
||||||
RUN npm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM node:22-slim AS production
|
FROM node:22-slim AS production
|
||||||
|
RUN corepack enable pnpm
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Build tools needed to compile better-sqlite3 native addon
|
||||||
|
RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY server/package.json ./server/
|
COPY server/package.json ./server/
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
RUN npm install --omit=dev
|
RUN pnpm install --prod
|
||||||
|
|
||||||
COPY server/ ./
|
COPY server/ ./
|
||||||
COPY --from=frontend /app/web/dist /app/web/dist
|
COPY --from=frontend /app/web/dist /app/web/dist
|
||||||
|
|
||||||
EXPOSE 3456
|
EXPOSE 3456
|
||||||
|
|
||||||
CMD ["npx", "tsx", "src/index.ts"]
|
CMD ["pnpm", "exec", "tsx", "src/index.ts"]
|
||||||
|
|||||||
@@ -8,13 +8,13 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^11.7.0",
|
"better-sqlite3": "^11.7.0",
|
||||||
"express": "^4.21.0"
|
"express": "^4.21.0",
|
||||||
|
"tsx": "^4.19.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/better-sqlite3": "^7.6.12",
|
"@types/better-sqlite3": "^7.6.12",
|
||||||
"@types/express": "^5.0.0",
|
"@types/express": "^5.0.0",
|
||||||
"@types/node": "^22.10.0",
|
"@types/node": "^22.10.0",
|
||||||
"tsx": "^4.19.0",
|
|
||||||
"typescript": "^5.7.0"
|
"typescript": "^5.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user