Add Docker configuration
This commit is contained in:
parent
e66970f2a9
commit
332fec136e
3 changed files with 16 additions and 0 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
vendor
|
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM node:14-alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm ci
|
||||
ENTRYPOINT [ "node", "index.js" ]
|
9
docker-compose.yml
Normal file
9
docker-compose.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
services:
|
||||
node:
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
networks:
|
||||
- palmiers
|
Loading…
Reference in a new issue