NuxtN
Nuxt4y ago
alex

HMR in docker not working

Hey, I just created a fresh project and put that into a docker container. When I start the container I realized HMR is not picking up any changes in code... any idea what the issue could be here?

Dockerfile
FROM node:lts
WORKDIR /app
COPY ./package*.json /app/
RUN yarn install
COPY . .
EXPOSE 3000
ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=3000
CMD [ "yarn", "dev", "-0" ]
Was this page helpful?