diff --git a/.gitignore b/.gitignore index 4f39b9e..64fb47f 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,8 @@ lerna-debug.log* !.vscode/extensions.json # dotenv environment variable files -.env.* +.env* +!.env.template # temp directory .temp diff --git a/Dockerfile b/Dockerfile index 57e06d0..5d624c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ COPY --chown=1234:1234 . ./ RUN yarn build -CMD ["sh", "-c", "yarn start:prod"] +CMD ["node", "dist/main"] diff --git a/src/main.ts b/src/main.ts index 754ebdf..ca09cca 100644 --- a/src/main.ts +++ b/src/main.ts @@ -44,4 +44,7 @@ async function bootstrap() { await app.listen(APP_PORT ?? 3000); } -bootstrap().catch(() => {}); +bootstrap().catch((error) => { + console.error('Failed to bootstrap application', error); + process.exit(1); +});