Skip to content

Commit

Permalink
Copy public/ to right place, and properly exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyn-Price committed Jul 3, 2023
1 parent 5d68a4f commit 0873cfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ FROM gcr.io/distroless/nodejs18:nonroot AS run-env
WORKDIR /app

COPY --from=build-env /build/build.js .
COPY public .
COPY public ./public

CMD ["build.js"]
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ if (process.env.NODE_ENV !== 'test') {
});
}

process.on('SIGINT', () => {
console.info("Interrupted");
process.exit(0);
});

export default server

0 comments on commit 0873cfa

Please sign in to comment.