From 69011624a76e7a25ed93d5a4342a19c92ff58eda Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Sat, 3 Jan 2026 15:38:23 +0100 Subject: [PATCH] [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 --- Dockerfile | 3 ++- docker-compose.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9de4526..601c925 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index 8ef6f58..76055d9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: