Skip to content

Commit

Permalink
feat: split dev.Docker and Docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Kim committed Dec 13, 2019
1 parent f74eea3 commit dde7ffd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
merkle-tree:
build:
context: ./merkle-tree
dockerfile: Dockerfile
dockerfile: dev.Dockerfile
restart: on-failure
depends_on:
- ganache
Expand Down
3 changes: 3 additions & 0 deletions merkle-tree/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM node:11.15
WORKDIR /app

COPY ./package.json ./package-lock.json ./
COPY ./src ./src
COPY ./test ./test
COPY ./setup-mongo-acl-for-new-users.js ./.babelrc ./
RUN npm ci

EXPOSE 80
Expand Down
9 changes: 9 additions & 0 deletions merkle-tree/dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:11.15

WORKDIR /app

COPY ./package.json ./package-lock.json ./
RUN npm ci

EXPOSE 80
CMD npm start

0 comments on commit dde7ffd

Please sign in to comment.