Open iam-venugopalreddy opened 9 months ago
if i build with $ docker build -f Dockerfile.prod -t venu1322/todo-ui:1.0 .
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
View build details: docker-desktop://dashboard/build/default/default/m6v0mqogdv549tkar3ika0wxo
If I change the base image to FROM node:14-alpine AS builder I can build the image but when I tried to run the image
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE venu1322/todo-ui 1.0 b63424d53630 42 minutes ago 55.9MB
venug@ShritanReddy MINGW64 ~/clones/PvanElthepu/Docker/todo-ui (master) $ docker run -d -p 8080:80 venu1322/todo-ui:1.0 50a92d8044df9e75c04f092d4b42cb102362b676068e742dbd00a2f86f43d08d
venug@ShritanReddy MINGW64 ~/clones/PvanElthepu/Docker/todo-ui (master) $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
venug@ShritanReddy MINGW64 ~/clones/PvanElthepu/Docker/todo-ui (master) $ docker logs 50a92d8044df9e75c04f092d4b42cb102362b676068e742dbd00a2f86f43d08d /bin/bash: line 1: /usr/share/nginx/html/env.sh: cannot execute: required file not found
I tried to change so many things by using other videos and help of Chat GPT, one time I can run the container but when I tried to access it on browser it is showing empty page.
Hello pavan, I am following your youtube channel, very clear explanation of every concept. can you please run this application again, I just clone your repository and by following your youtube video tried to execute, after minor changes I can access the application on the browser but with empty page. Thank you.