diff --git a/local-development/Dockerfile b/local-development/Dockerfile index 35af1be..bb7ecf5 100644 --- a/local-development/Dockerfile +++ b/local-development/Dockerfile @@ -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" ] diff --git a/local-development/docker-compose.yaml b/local-development/docker-compose.yaml index ec60797..15ef184 100644 --- a/local-development/docker-compose.yaml +++ b/local-development/docker-compose.yaml @@ -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: