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