build: 🔨🚧 fix hot reloading web in docker

This commit is contained in:
Collin M. Barrett 2020-08-29 14:14:53 -05:00
parent b362850fb8
commit d64f9acab8
2 changed files with 6 additions and 3 deletions

View file

@ -14,10 +14,10 @@ services:
build:
dockerfile: Dockerfile.dev
volumes:
- .:/app:ro
- /app/node_modules
- ./web/src:/app/src:ro
environment:
- CHOKIDAR_USEPOLLING=true
stdin_open: true
directory.api:
build:

View file

@ -1,12 +1,15 @@
# init
FROM node:alpine
ENV PATH /app/node_modules/.bin:$PATH
EXPOSE 3000
# install
WORKDIR /app
COPY public/. public/
COPY config-overrides.js ./
COPY tsconfig.json ./
COPY package*.json ./
RUN npm i
# start
COPY . ./
CMD ["npm", "start"]