fix: analytics build image

This commit is contained in:
wancat committed 2024-04-05 22:59:22 +08:00
1 parent 84e65c9ef6
commit ba69685ea2
4 files changed
+4 -10

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
**/node_modules
.git
*/dist
**/dist
-7
View File
@@ -17,10 +17,3 @@ ENV NODE_ENV=production
WORKDIR /app/packages/analytics
RUN yarn build
CMD [ "yarn", "start" ]
# Development stage
FROM build as dev
RUN yarn install --frozen-lockfile
WORKDIR /app/packages/analytics
ENV NODE_ENV=development
CMD [ "yarn", "dev" ]
+2 -2
View File
@@ -7,8 +7,8 @@
"license": "GPL",
"scripts": {
"start": "node dist/index.js",
"build": "tsc",
"watch": "tsc -w",
"build": "tsc -b -f",
"watch": "tsc -b --watch",
"dev": "nodemon"
},
"dependencies": {
+1
View File
@@ -5,6 +5,7 @@
"outDir": "./dist"
},
"include": ["src"],
"references": [{ "path": "../models" }],
"ts-node": {
"swc": true
}