When switching the content-watcher base image to Alpine, it exposed that there are some dependency issues in the NestJS configuration that need to be refactored.
api.module.ts uses PubSubMdoule and also imports BullModule.
PubSubModule also imports BullModule and when running on Alpine, the BullModule is accessed before it is properly initialized.
See #93 for more details on the error and rolling back the Dockerfile to Ubuntu.
Suggested Solution:
BullModule should be removed from api.module.ts and PubSubModule should be refactored to export BullModule configuration.
When switching the content-watcher base image to Alpine, it exposed that there are some dependency issues in the NestJS configuration that need to be refactored.
api.module.ts
usesPubSubMdoule
and also importsBullModule
.PubSubModule
also importsBullModule
and when running on Alpine, theBullModule
is accessed before it is properly initialized.See #93 for more details on the error and rolling back the
Dockerfile
to Ubuntu.Suggested Solution:
BullModule
should be removed fromapi.module.ts
andPubSubModule
should be refactored to exportBullModule
configuration.