diff --git a/package.json b/package.json index 74f4215dc..b908a30b3 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,9 @@ "scripts": { "dev": "yarn grunt run-dev", "clean-all": "yarn grunt clean:all", - "build": "yarn grunt build" + "build": "yarn grunt build", + "build-offline": "cd ./api/cmd/portainer && CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s' && mv -b portainer ../../../dist/portainer-linux-amd64" + }, "engines": { "node": ">= 0.8.4"