mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
build: 🔨🚧 fix hot reloading web in docker
This commit is contained in:
parent
b362850fb8
commit
d64f9acab8
2 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
Loading…
Reference in a new issue