Browse Source

Update Dockerfile to use yarn and clean up docker-compose.yml

pull/33/head
Abheek Dhawan 3 years ago
parent
commit
deffe852c3
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 5
      Dockerfile
  2. 2
      docker-compose.yml

5
Dockerfile

@ -4,9 +4,10 @@ FROM node:latest
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Install deps # Install deps
COPY package*.json ./ COPY package.json ./
COPY yarn.lock ./
RUN npm install RUN yarn
COPY . . COPY . .

2
docker-compose.yml

@ -4,8 +4,6 @@ services:
mongo: mongo:
image: mongo:4.4 image: mongo:4.4
restart: always restart: always
ports:
- 27017:27017
volumes: volumes:
- ./data:/data/db - ./data:/data/db

Loading…
Cancel
Save