Skip to content

Commit

Permalink
updated MongoDB and Mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Dec 8, 2024
1 parent 6e03b0a commit 44d5e93
Show file tree
Hide file tree
Showing 9 changed files with 174 additions and 109 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ npm-debug.log
notifyBC.code-workspace
/coverage/
windows-service.js
/server/database/
!/server/database/.keep
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1
ARG nodeVersion=lts
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:${nodeVersion}
Expand All @@ -15,6 +16,14 @@ WORKDIR /home/node/app
# Bundle app source code
COPY --chown=node . .

COPY <<EOF src/config.local.ts
module.exports = {
queue: {
connection: null,
},
};
EOF

RUN npm i && npm run build && npm i --omit=dev

ENV HOST=0.0.0.0 PORT=3000 SMTP_PORT=2525 NODE_ENV=production NOTIFYBC_WORKER_PROCESS_COUNT=1
Expand Down
Loading

0 comments on commit 44d5e93

Please sign in to comment.