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 **/node_modules
.git .git
*/dist **/dist
-7
View File
@@ -17,10 +17,3 @@ ENV NODE_ENV=production
WORKDIR /app/packages/analytics WORKDIR /app/packages/analytics
RUN yarn build RUN yarn build
CMD [ "yarn", "start" ] 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", "license": "GPL",
"scripts": { "scripts": {
"start": "node dist/index.js", "start": "node dist/index.js",
"build": "tsc", "build": "tsc -b -f",
"watch": "tsc -w", "watch": "tsc -b --watch",
"dev": "nodemon" "dev": "nodemon"
}, },
"dependencies": { "dependencies": {
+1
View File
@@ -5,6 +5,7 @@
"outDir": "./dist" "outDir": "./dist"
}, },
"include": ["src"], "include": ["src"],
"references": [{ "path": "../models" }],
"ts-node": { "ts-node": {
"swc": true "swc": true
} }