Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
diva-exchange opened this issue Sep 5, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@diva-exchange
Copy link
Owner

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).

@diva-exchange diva-exchange added the good first issue Good for newcomers label Sep 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant