2

I am creating an Astro js container with Docker on windows.

Dockerfile

FROM node:18-alpine3.15
RUN mkdir app
WORKDIR /app
COPY . .
RUN npm install
EXPOSE 24678
CMD ["npm","run","dev","--","--host"]

I build my image with the following command

docker build . -t astro

I run my container with this command

docker run --name astro1 -p 24678:24678 -v D:\Workspace\Docker\Practicas\docker-astro-example:/app -v /app/node_modules/ astro

So far without problems but when I make a change in the index.astro document it does not refresh the page to see the changes.

SaulRM
  • 121
  • 5

0 Answers0