Skip to content

Commit 6d1e4a2

Browse files
committed
chore: dockerfile for mail server
1 parent 2c4863b commit 6d1e4a2

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

docker/mail/Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM node:21
2+
3+
WORKDIR /base
4+
5+
COPY ["package.json", "./package.json"]
6+
COPY [".yarnrc", "./.yarnrc"]
7+
COPY [".npmrc", "./.npmrc"]
8+
COPY [".eslintrc.js", "./.eslintrc.js"]
9+
COPY ["turbo.json", "./turbo.json"]
10+
COPY ["yarn.lock", "./yarn.lock"]
11+
COPY ["tsconfig.json", "./tsconfig.json"]
12+
13+
COPY ["packages/typescript-config", "./packages/typescript-config"]
14+
COPY ["packages/eslint-config", "./packages/eslint-config"]
15+
COPY ["packages/common", "./packages/common"]
16+
COPY ["backend/mail-zeus", "./backend/mail-zeus"]
17+
COPY ["backend/mail", "./backend/mail"]
18+
19+
20+
RUN cd /base
21+
RUN yarn install
22+
RUN yarn run build
23+
24+
EXPOSE 25
25+
26+
WORKDIR /base/backend/mail
27+
28+
CMD ["yarn", "dev"]

docker/mail/buildspec.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 0.2
2+
3+
env:
4+
secrets-manager:
5+
6+
7+
phases:
8+
install:
9+
runtime-versions:
10+
nodejs: 21
11+
build:
12+
commands:
13+
- mv docker/mail/Dockerfile .
14+
- cd backend/mail
15+
- touch .env
16+
- cd ../..
17+
artifacts:
18+
files:
19+
- '**/*'

docker/mail/docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.8"
2+
3+
services:
4+
backendapi:
5+
image: shawakash/paybox-mail:{{tag}}
6+
restart: unless-stopped
7+
ports:
8+
- 25:25
9+
command: "yarn dev"

0 commit comments

Comments
 (0)