Skip to content

[BUG] Generated Dockerfile runs a non-existing npm command #321

@nightknighto

Description

@nightknighto

Describe the bug.

In the generated Dockerfile, the CMD is set to npm start. There are no npm scripts defined at all in the generated package.json, thus it leads to an error when running the container.

Expected behavior

The docker container should run successfully and start the server.

Screenshots

Error:
Image

Dockerfile:
Image

package.json:
Image

How to Reproduce

  1. Generate the tutorial's asyncapi yaml file from CLI
  2. Generate the nodejs template
  3. Check package.json and Dockerfile, or try to build and run the image.

🖥️ Device Information [optional]

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions