Add Dockerfile example
This commit is contained in:
parent
7163416dfb
commit
e890513e7c
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
|||||||
|
Dockerfile
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
|
@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"dev": "nodemon node_modules/.bin/babel-node index.js",
|
"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"
|
"lint": "./node_modules/.bin/eslint ./ controllers/ class/ --fix"
|
||||||
},
|
},
|
||||||
"author": "Igor Korsakov <overtorment@gmail.com>",
|
"author": "Igor Korsakov <overtorment@gmail.com>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user