Skip to content

Commit f4df423

Browse files
fixing docker build failure
1 parent 100111a commit f4df423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dashboard-fe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "next dev -p 3000",
77
"build": "next build",
88
"start": "next start",
9-
"docker:build": "docker build . -t scriptedalchemy/mf-dashboard:latest",
9+
"docker:build": "rm -rf node_modules && docker build . -t scriptedalchemy/mf-dashboard:latest",
1010
"docker:run": "docker run -p 3000:3000 -t scriptedalchemy/mf-dashboard",
1111
"docker:demo": "docker run -p 3000:3000 --mount type=bind,source=\"$(pwd)\"/.fm-dashboard,target=/data -t mf-dashboard",
1212
"docker:push": "PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\\\",]//g' | tr -d '[[:space:]]');echo $PACKAGE_VERSION && docker tag scriptedalchemy/mf-dashboard:latest scriptedalchemy/mf-dashboard:$PACKAGE_VERSION && docker push scriptedalchemy/mf-dashboard:latest && docker push scriptedalchemy/mf-dashboard:$PACKAGE_VERSION"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"submodules": "git pull --recurse-submodules",
26-
"release": "changeset publish && yarn workspace @module-federation/dashboard run docker:push",
26+
"release": "changeset publish && yarn workspace @module-federation/dashboard run docker:build && yarn workspace @module-federation/dashboard run docker:push",
2727
"prettier": "prettier --write \"**/*.{js,json,md,ts,tsx}\"",
2828
"wipe": "find . -name \"node_modules\" -exec rm -rf '{}' +\nfind . -name \"yarn.lock\" -exec rm -rf '{}' +",
2929
"prettier:check": "prettier --list-different \"**/*.{js,json,md,ts,tsx}\""

0 commit comments

Comments
 (0)