Preparation for Dockerising

This commit is contained in:
Fred Boniface 2022-12-12 14:28:40 +00:00
parent 7f21eb9add
commit f108a9f418
3 changed files with 22 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
node_modules
npm-debug.log
.git
.gitignore
Dockerfile
.dockerignore
README.md
LICENSE

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:19
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
CMD [ "node", "app.js" ]

8
docker-compose.yaml Normal file
View File

@ -0,0 +1,8 @@
version: "0.0.1"
services:
web:
build: .
ports:
- "9300:8460"
mariadb:
image: mariadb:latest