chore: add dockerfile
This commit is contained in:
parent
54af2874e4
commit
0b2f4b7e62
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
WORKDIR /app/tailchat
|
||||||
|
|
||||||
|
RUN npm install -g pnpm@8.3.1
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
RUN pnpm build
|
||||||
|
|
||||||
|
EXPOSE 12345
|
||||||
|
|
||||||
|
CMD ["pnpm", "start:pro"]
|
@ -5,6 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon",
|
"dev": "nodemon",
|
||||||
"start": "NODE_ENV=production ts-node src/server/main.ts",
|
"start": "NODE_ENV=production ts-node src/server/main.ts",
|
||||||
|
"start:pro": "node ./dist/server/main.js",
|
||||||
"build": "pnpm build:client && pnpm build:server && pnpm build:tracker && pnpm build:geo",
|
"build": "pnpm build:client && pnpm build:server && pnpm build:tracker && pnpm build:geo",
|
||||||
"build:client": "vite build",
|
"build:client": "vite build",
|
||||||
"build:server": "tsc -p tsconfig.server.json",
|
"build:server": "tsc -p tsconfig.server.json",
|
||||||
|
@ -6,12 +6,10 @@ import { workspacePermission } from '../middleware/workspace';
|
|||||||
import {
|
import {
|
||||||
addWorkspaceWebsite,
|
addWorkspaceWebsite,
|
||||||
deleteWorkspaceWebsite,
|
deleteWorkspaceWebsite,
|
||||||
getWorkspaceWebsiteInfo,
|
|
||||||
getWorkspaceWebsitePageview,
|
getWorkspaceWebsitePageview,
|
||||||
getWorkspaceWebsites,
|
getWorkspaceWebsites,
|
||||||
getWorkspaceWebsiteSession,
|
getWorkspaceWebsiteSession,
|
||||||
getWorkspaceWebsiteStats,
|
getWorkspaceWebsiteStats,
|
||||||
updateWorkspaceWebsiteInfo,
|
|
||||||
} from '../model/workspace';
|
} from '../model/workspace';
|
||||||
import { parseDateRange } from '../utils/common';
|
import { parseDateRange } from '../utils/common';
|
||||||
import { ROLES } from '../utils/const';
|
import { ROLES } from '../utils/const';
|
||||||
|
Loading…
Reference in New Issue
Block a user