Home>

Tell me how to install NUXT correctly using Docker-Compose?

docker-compose.yml:

Version: "3"
    Services:
       NUXT-APP:
         Build:
           Context :.
           Dockerfile: dockerfile.
        Ports:
          -"3000: 3000"
        Volumes:
          -./:/var/www/nuxt.
    Networks:
      -NUXT-NETWORK
    Networks:
      NUXT-NETWORK:
      Driver: Bridge.

dockerfile:

From Node: 12.16.3-Alpine3.9
Workdir /Var /WWW /NUXT
Copy Package * .json ./
RUN NPM Install &
&
 NPM Run Start.
RUN NPM RUN DEV
CMD ["NPM", "Run", "Dev"]

Please specify your specific problem or provide more detailed information about what you need. In the current form it is difficult to understand what you are asking.

Дух сообщества2021-09-14 13:15:52

It is impossible to install NUXT using Docker-Compose NPM like the NUXT START command is not started and the container itself is not started.

Max Semenov2021-09-14 13:28:53