feat: add docker (#6)

* misc: improve match version of types/node

* feat: improve stop with sigint signal

* feat: add docker

* feat: add docker in readme
This commit is contained in:
Jeremy Chabernaud
2023-11-15 15:33:05 -05:00
committed by GitHub
parent a1197fc77e
commit a10aa9c52f
6 changed files with 65 additions and 6 deletions
+7 -2
View File
@@ -25,7 +25,6 @@ async function bootstrap() {
cert: readFileSync(`${currentDirectory}/secrets/cert.pem`),
}
};
}
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter(options));
@@ -38,10 +37,15 @@ async function bootstrap() {
forbidUnknownValues: true
}),
);
process.on('SIGINT', () => {
console.log(`Stopping services`);
process.exit(0);
});
app.enableCors();
useContainer(app.select(AppModule), { fallbackOnErrors: true });
//Taproot
bitcoinjs.initEccLib(ecc);
@@ -50,4 +54,5 @@ async function bootstrap() {
});
}
bootstrap();