pelthepu / todo-ui

2 stars 14 forks source link

Not working #1

Open iam-venugopalreddy opened 9 months ago

iam-venugopalreddy commented 9 months ago

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.

iam-venugopalreddy commented 8 months ago

if i build with $ docker build -f Dockerfile.prod -t venu1322/todo-ui:1.0 .

Error: Dockerfile.prod:13

11 | COPY . ./ 12 | 13 | >>> RUN npm run build 14 | 15 | # Deploying to nginx

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

iam-venugopalreddy commented 8 months ago

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

iam-venugopalreddy commented 8 months ago

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.