mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-08 10:49:35 +01:00
[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:
parent
48146fd385
commit
69011624a7
2 changed files with 8 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue