diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..022b988 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +vendor diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e7d0fc4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:14-alpine +WORKDIR /app +COPY . . +RUN npm ci +ENTRYPOINT [ "node", "index.js" ] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9b35763 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + node: + build: + context: . + restart: always + ports: + - 8081:8081 + networks: + - palmiers