#Error: Docker build failed with go

29 messages · Page 1 of 1 (latest)

maiden basin
#

I have the problem Error: Docker build failed for complete details in the image I attached

can you help me solve the problem?

iron pumiceBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

leaden tigerBOT
#

Project ID: c1c390ec-5526-44eb-8042-53ac752448f6

maiden basin
#

c1c390ec-5526-44eb-8042-53ac752448f6

cold osprey
#

can you share screenshots of your folder structure?

maiden basin
#

hi i just solved the problem by myself that my main should not be in the folder. it works, but I want to ask if my game is in a folder, how does it work?

cold osprey
#

you'd need to change the build and start command, I think it would be something like this.
build command

go build ./...

and the start command is dependent on the folder structure, I don't have a way to tell you this without knowing your project

maiden basin
#

to build command it should be here?

cold osprey
#

oof the UI is broken in more ways than I thought

maiden basin
#

i see, okay thank you brody

#

can i ask one more question?

cold osprey
#

of course

#

we aren't done until this is solved

maiden basin
#

Previously I had deployed on the railways and it looked like there was no Docker, but for the new version now there is Docker, is there really an update?

cold osprey
#

even the old mysql databases used docker, everything uses docker.

maiden basin
#

My main question is already working, thank you.
I think I will deploy on the railway again and if there are any questions I apologize for asking again here. Thank You

cold osprey
#

don't apologise! we are happy to help

keen river
#

i am on a similar boat. my project structure is like this

project-root/
|-- internal/
|   |-- api/
|   |   |-- handlers.go
|   |
|   |-- utils/
|       |-- http_utils.go
|
|-- go.mod
|-- go.sum
|-- main.go
#

the service ID is: 7a1fbe84-88ed-4f02-8fdf-710b05e0cba0

cold osprey
keen river
#

there you go

cold osprey
#

looks like your go.mod file is missing some packages

keen river
#

awwhh hell yeahh! ran go mod tidy and added the dependencies, this worked

#

thanks brody!