From 332fec136e494fbd6d5cc7ff219a62c8a457c691 Mon Sep 17 00:00:00 2001 From: Erick Ruiz de Chavez <953140+eruizdechavez@users.noreply.github.com> Date: Sat, 4 May 2024 15:11:37 -0400 Subject: [PATCH] Add Docker configuration --- .dockerignore | 2 ++ Dockerfile | 5 +++++ docker-compose.yml | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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