From f696f158dc9032de0a1d1a6625f6fc3f3f31cc57 Mon Sep 17 00:00:00 2001 From: Cfp Date: Sun, 28 May 2023 19:47:48 +0200 Subject: [PATCH 1/2] Initial Docker files --- .dockerignore | 4 ++++ Dockerfile | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..41f94ea --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +node_modules +config.json +mails +cert \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93d68d7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node + +WORKDIR /app + +COPY package.json /app + +RUN npm install + +COPY . /app + +# SMTP, SMTPS, POP3, POP3S +EXPOSE 25 465 110 995 + +VOLUME ["/app/mails"] + +CMD ["node", "."] \ No newline at end of file From 847386a3ab6760f7bc316de9022a4bfb137657e3 Mon Sep 17 00:00:00 2001 From: Cfp Date: Sun, 28 May 2023 20:25:58 +0200 Subject: [PATCH 2/2] Volume config.json --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 93d68d7..3e48aba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,6 @@ COPY . /app # SMTP, SMTPS, POP3, POP3S EXPOSE 25 465 110 995 -VOLUME ["/app/mails"] +VOLUME ["/app/mails", "/app/config.json"] CMD ["node", "."] \ No newline at end of file