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
# Install deps
COPY package*.json ./
COPY package.json ./
COPY yarn.lock ./
RUN npm install
RUN yarn
COPY . .

2
docker-compose.yml

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

Loading…
Cancel
Save