[Chore]: Updated Docker build

Dockerfile now correctly builds for using locking and compose file uses environment variables instead of mapping the config file into the container
This commit is contained in:
ClaraCrazy 2026-01-03 15:38:23 +01:00
parent 48146fd385
commit 69011624a7
No known key found for this signature in database
GPG key ID: EBBC896ACB497011
2 changed files with 8 additions and 5 deletions

View file

@ -4,5 +4,6 @@ COPY . /home/node/app
RUN chown -R node:node /home/node/app
WORKDIR /home/node/app
USER node
RUN npm i
RUN npm ci
RUN mkdir db
CMD ["npm", "run", "start"]

View file

@ -1,13 +1,15 @@
services:
48hr:
## Map environment variables from file (e.g. for imap password)
#env_file: ./.env
env_file: ./.env
image: localhost/48hr
restart: always
build: .
ports:
- 3000:3000
## Map config file from project to docker container
volumes:
- ./application/config.js:/home/node/app/application/config.js
## Create volume for inbox locking
#volumes:
# - 48hr-vol:/home/node/app/db/
#volumes:
# 48hr-vol: