Added docker

master
Keith Irwin 2021-11-24 13:12:48 -07:00
parent b1848eb34f
commit 2b0a351f0f
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 17 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:16-bullseye
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get clean
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci --only=production
COPY . .
EXPOSE 8080
CMD [ "npm", "run", "start" ]

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: '3'
services:
mailapi:
build: .
restart: unless-stopped
container_name: mailapi
ports:
- "8080:8080/tcp"