-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docker example] Streamline trace viewer app/image
A few small changes that make the example docker image smaller and build a bit faster: - Build the theia trace viewer app/appliance in "production" mode (vs development) - Have yarn remove the installed "devDependencies" after the build ("yarn --production") - adapt docker-entrypoint.sh to start the app directly rather than through @theia/cli - Remove redundant "theia build" triggered in "prepare" package.json scripts entry - it's also done in Dockerfile Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
- Loading branch information
1 parent
510e3bc
commit 26edf9d
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/usr/bin/env bash | ||
yarn start --hostname 0.0.0.0 --port 4000 | ||
# @theia/cli not installed, so start the app directly | ||
node ./src-gen/backend/main.js --hostname 0.0.0.0 --port 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters