Комментарии •

  • @mabdurrafeyahmed9256
    @mabdurrafeyahmed9256 Год назад +2

    I faced issue of using ${pwd} in mac, I replaced with $PWD and it worked. Thanks for this technique.

  • @ayencoscolfield3312
    @ayencoscolfield3312 2 года назад

    nice work and well understood, thanks

  • @Winner4ever
    @Winner4ever 2 года назад

    Well explained

  • @pitocms
    @pitocms 2 года назад +2

    Why you are creating react app first in local environment ? Example in your local machine there has no any node js and npm then what you will do ?

  • @UzairAli001
    @UzairAli001 2 года назад

    How do we build Production ready docker image?

  • @jhonfer5481
    @jhonfer5481 2 года назад

    como puedo hacer esto con windows?

  • @harshit___taneja
    @harshit___taneja 2 года назад +1

    tried image created successfully run successfully but web page not load successfully already try to map react 3000 port to localhost 3000 port as done in last run command still it doesn't work

    • @mrstephanwehner
      @mrstephanwehner 2 года назад

      Do you get the message "You can now view docker-react-app in your browser" as shown beginning around 13:30?

    • @harshit___taneja
      @harshit___taneja 2 года назад

      @@mrstephanwehner I tried everything image successful created run but the default web page on browser is not working and i cross the port sync of local machine and react map they are perfectly mapped still no output

    • @JoseGarcia-vu5nd
      @JoseGarcia-vu5nd 2 года назад

      @@harshit___taneja I had exactly that problem and no video although I did things as I said until this video. I use this configuration in my Dockerfild and with this video it worked for me:
      FROM node:16.14.2-buster
      WORKDIR /app
      COPY package.json package.json
      COPY package-lock.json package-lock.json
      RUN npm install
      COPY . .
      CMD ["npm","run","start"]
      If not, watch this video where you specify a command in Dockerfild to explicitly tell Docker to keep listening for changes:
      ruclips.net/video/0B2raYYH2fE/видео.html
      and this video helped me too
      ruclips.net/video/8VHheCkw-7k/видео.html

    • @harshit___taneja
      @harshit___taneja 2 года назад

      @@JoseGarcia-vu5nd now it is working for me also

  • @alexvillavicencio2873
    @alexvillavicencio2873 Год назад

    Greetings,
    I got the “docker:invalid format.” Error
    Can you tell why?
    Here is the code for the last step.
    docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image

    • @ecemozturk1507
      @ecemozturk1507 Год назад

      I had the same problem, here how I solved:
      Firstly I changed Powershell to Bash.
      Then I wrote "docker ps" to see all the processes.
      I copied Container ID of react-image.
      Then I wrote "docker stop "
      After that I wrote "docker run -rm -p 3000:3000 -v $(pwd)/src:/app/src:ro react-image" then it solved.