Skip to content

Docker build process, lifecycle warning on postinstall version.ts #4

@diva-exchange

Description

@diva-exchange

Executing bin/create-docker-image.sh creates the following warning:

npm WARN lifecycle @diva.exchange/explorer@3.1.4-0.34.1~postinstall: cannot run in wd @diva.exchange/explorer@3.1.4-0.34.1 ts-node --files src/version.ts (wd=/explorer)
whereas "wd" means "working directory". The file /explorer/src/version.ts is available - so it is ts-node which is** not available**. Since it is a production install (within the docker container), ts-node can't be there.

Possible fix: do not execute postinstall during the docker build. Reason: the static version file is already available in the image (this would be created by version.ts).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions