-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
Description
What’s the problem you're trying to solve
We need a production build that only includes necessary context, e.g. artifacts, production dependency, serve package ...etc.
Describe the solution you’d like
Provide package command to do production builds, and use --output flag to indicate the output type. We can implement node and docker output first:
- Node:
Build:vulcan package --output node
Execute:node ./dist/index.js - Docker
Build:vulcan package --output node && docker build ./dist
Executedocker run <image
Additional context
- We should prepare the resources e.g. dockerfile and all the contents then print the "docker build" commands to users instead of calling docker API directly. Because we might not able to call docker API from Vulcan CLI, e.g. using CLI in docker Package CLI tools with Docker #49
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Released