Add Dockerfile (#216)

* Add Dockerfile

* EXPOSE 8080

* Update DockerFile

* spacing

Co-authored-by: toinux <toinux@makintosh.local>
Co-authored-by: toinux <toinux@makintosh>
This commit is contained in:
itzwam 2020-12-16 02:53:29 +01:00 committed by GitHub
parent 6ea6e32b0d
commit f5d56766de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

2
.dockerignore Normal file

@ -0,0 +1,2 @@
node_modules
npm-debug.log

18
Dockerfile Normal file

@ -0,0 +1,18 @@
FROM node:lts
WORKDIR /usr/src/app
COPY package*.json ./
RUN echo Installing dependencies \
&& apt-get update \
&& apt-get install sqlite3 -y \
&& npm ci
COPY . .
RUN npm run build
EXPOSE 8080
CMD node main.js