#Error: Docker build failed with go
29 messages · Page 1 of 1 (latest)
Project ID: c1c390ec-5526-44eb-8042-53ac752448f6
c1c390ec-5526-44eb-8042-53ac752448f6
can you share screenshots of your folder structure?
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?
and i follow ur command at here https://www.answeroverflow.com/m/1164612660453724160
it still didn't work
Hi, everyone
Its my first time attemping to deploy to railwayapp and i dont understand why my golang project fails to build.
Appreciate any help! 🙂
project: https://github.com/nikita-shtimenko/snippetbox-api
#5 DONE 0.0s
#6 [stage-1 1/5] FROM docker.io/library/ubuntu:jammy@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e4...
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
to build command it should be here?
oof the UI is broken in more ways than I thought
go here https://railway.app/account/feature-flags and enable staged changes, then go back to your service settings and you'll have a search bar, then change the build command
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?
even the old mysql databases used docker, everything uses docker.
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
okey i get it
don't apologise! we are happy to help
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
build logs please https://bookmarklets.up.railway.app/log-downloader/
looks like your go.mod file is missing some packages