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:
parent
6ea6e32b0d
commit
f5d56766de
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
npm-debug.log
|
18
Dockerfile
Normal file
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
|
Loading…
x
Reference in New Issue
Block a user