Add Dockerfile example

This commit is contained in:
David Parrish 2020-12-07 21:18:16 -05:00 committed by Overtorment
parent 7163416dfb
commit e890513e7c
3 changed files with 12 additions and 1 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
Dockerfile

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM debian:bullseye-slim
RUN apt-get update && apt-get -y --no-install-recommends install npm=* nodejs=* \
build-essential=* \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY . /lndhub
WORKDIR /lndhub
RUN npm i && npm run build

View File

@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon node_modules/.bin/babel-node index.js",
"start": "node_modules/.bin/babel-node index.js",
"build": "babel ./ -d dist --copy-files --ignore node_modules",
"start": "node dist/index.js",
"lint": "./node_modules/.bin/eslint ./ controllers/ class/ --fix"
},
"author": "Igor Korsakov <overtorment@gmail.com>",