mirror of
https://github.com/Crazyco-xyz/48hr.email.git
synced 2026-01-09 11:19:36 +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
|
RUN chown -R node:node /home/node/app
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
USER node
|
USER node
|
||||||
RUN npm i
|
RUN npm ci
|
||||||
|
RUN mkdir db
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,15 @@
|
||||||
services:
|
services:
|
||||||
48hr:
|
48hr:
|
||||||
## Map environment variables from file (e.g. for imap password)
|
## Map environment variables from file (e.g. for imap password)
|
||||||
#env_file: ./.env
|
env_file: ./.env
|
||||||
image: localhost/48hr
|
image: localhost/48hr
|
||||||
restart: always
|
restart: always
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
## Map config file from project to docker container
|
## Create volume for inbox locking
|
||||||
volumes:
|
#volumes:
|
||||||
- ./application/config.js:/home/node/app/application/config.js
|
# - 48hr-vol:/home/node/app/db/
|
||||||
|
|
||||||
|
#volumes:
|
||||||
|
# 48hr-vol:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue