mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: analytics build image
This commit is contained in:
1 parent
84e65c9ef6
commit
ba69685ea2
4 files changed
+4
-10
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
**/node_modules
|
**/node_modules
|
||||||
.git
|
.git
|
||||||
*/dist
|
**/dist
|
||||||
@@ -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" ]
|
|
||||||
@@ -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": {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"outDir": "./dist"
|
"outDir": "./dist"
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
|
"references": [{ "path": "../models" }],
|
||||||
"ts-node": {
|
"ts-node": {
|
||||||
"swc": true
|
"swc": true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user