Skip to content

Commit

Permalink
chore: update docker and docker-compose files
Browse files Browse the repository at this point in the history
Updated context in docker-compose to build the docker with respect to
the parent folder. Paths in the docker-compose have been updated
according to the context set in the docker-compsoe.
  • Loading branch information
mrodm committed Apr 21, 2021
1 parent 6bfe31a commit 84e71f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions local-development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
FROM node:14
WORKDIR /usr/src/app
COPY ../package*.json ./
COPY package*.json ./
RUN npm install
COPY .. .
COPY . ./
EXPOSE ${PORT:-3978}
CMD [ "npm", "start" ]
6 changes: 4 additions & 2 deletions local-development/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ version: "3.3"

services:
mpm-server:
build: .
build:
context: ../
dockerfile: local-development/Dockerfile
image: lifecycle/msteams-private-messages
container_name: mpm-server
volumes:
- ${PWD}/..:/usr/src/app/
- ..:/usr/src/app/
environment:
- MYSQL_HOST=mpm-db
depends_on:
Expand Down

0 comments on commit 84e71f1

Please sign in to comment.