Skip to content

Production build with Node and Docker #50

@oscar60310

Description

@oscar60310

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
    Execute docker 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

Type

No type

Projects

Status

Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions