Problems with docker – ReactJs – Go Gin

Written by
reddit
Link to Post

https://www.reddit.com/r/golang/comments/blp5ir/problems_with_docker_reactjs_go_gin/ by 

I’ve been trying to setup docker service that returns react front end. The app works fine when its outside of the docker but fails to deliver the react app when its inside the docker. the Get method that returns json with ‘pong’ works fine trough. Im new to docker and docker images. Commands ive been using are these

Note ive added COPY ./src/client ./app command but im not sure if its correct.

any help or resource for writing images would be helpful since im planning to use containers alot in the future!

docker build . -t go-gin docker run -i -t -p 80:80 go-gin 

https://i.redd.it/m08enc6yprw21.png

https://i.redd.it/ge06q17yprw21.png

https://i.redd.it/sb0j8t5yprw21.png

submitted by /u/inetjojo
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Comments are closed.