From deffe852c3894bcb8aaa8997caf28fec232d981e Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 20 Mar 2022 20:56:06 -0500 Subject: [PATCH] Update Dockerfile to use yarn and clean up docker-compose.yml --- Dockerfile | 5 +++-- docker-compose.yml | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 617952d..072945e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ FROM node:latest WORKDIR /usr/src/app # Install deps -COPY package*.json ./ +COPY package.json ./ +COPY yarn.lock ./ -RUN npm install +RUN yarn COPY . . diff --git a/docker-compose.yml b/docker-compose.yml index b3bf962..81eb296 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,6 @@ services: mongo: image: mongo:4.4 restart: always - ports: - - 27017:27017 volumes: - ./data:/data/db