Preparation for Dockerising
This commit is contained in:
parent
7f21eb9add
commit
f108a9f418
8
.dockerignore
Normal file
8
.dockerignore
Normal file
@ -0,0 +1,8 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
.git
|
||||
.gitignore
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
README.md
|
||||
LICENSE
|
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
8
docker-compose.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "0.0.1"
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "9300:8460"
|
||||
mariadb:
|
||||
image: mariadb:latest
|
Reference in New Issue
Block a user