Long build for dockerfile repo. (Timeout / Error)
My project has 3 services. Go api, Vue front-end, and Postgres db. I just tried to deploy my vue front end using the Dockerfile method. The dockerfile was detected and build started. Seems to be hanging, substantially longer then my go service (currently at over 10 minutes). Is this normal for dockerfile based services? I built and ran the container locally and it ran fine but I know that doesn't really count for much lol.
Update: As I was typing the build timed out.
Project ID: b81f89f4-597d-4085-b8be-913321a3b926
Github Repo: https://github.com/devhulk/tasks-frontend
GitHub
GitHub - devhulk/tasks-frontend
Contribute to devhulk/tasks-frontend development by creating an account on GitHub.
22 Replies
Project ID:
b81f89f4-597d-4085-b8be-913321a3b926
please send the dockerfile
I also added the link for the whole repo including the docker and nginx files in the description just in case. Thanks for the help!
ill start off by saying kudos to you for not running your vue app in dev mode when on railway
haha thanks, didn't seem like the best idea. Plus i was curious how railway would handle the nginx piece.
what part of the dockerfile does it seem to hang on?
the logs stopped here
how long does it take to build locally?
the docker image
a few seconds
42.9s to be exact
odd, i will look into this for you a little later
no worries take your time, I got to finish the CRUD portion of my web service anyway so no shortage of things to work on ππ½
Solution
@devhulk tagging for visibility
testing now
I just merged and redeployed, waiting on dns to catch up. Still getting
Taking longer then usual though, usually just took 30 sec
have you set a PORT service variable to 8080?
I just did, missed that from your git message. Rebuilding now.
We are up and running! Appreciate it. I'm reading through your solution, may have more questions about why this works. Cool if I ping you on that stuff?
no pings (server rules)
but for sure, ask away, I'd be happy to answer