R
Railway•4mo ago
luci1

Infinite deploy

I'm trying to deploy a golang project using dockerfile
FROM golang:alpine as build

WORKDIR /src/app
COPY . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /bin/app cmd/main.go

FROM gcr.io/distroless/static-debian11

COPY --from=build /bin/app /
EXPOSE 8080
CMD ["/app"]
FROM golang:alpine as build

WORKDIR /src/app
COPY . .
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /bin/app cmd/main.go

FROM gcr.io/distroless/static-debian11

COPY --from=build /bin/app /
EXPOSE 8080
CMD ["/app"]
That is not a big build (just 17mb using distroless debian image), but is not ending. It keeps Creating container status.
No description
12 Replies
Percy
Percy•4mo ago
Project ID: 954065b8-9cbc-4421-8017-713f7c9a5013
luci1
luci1•4mo ago
954065b8-9cbc-4421-8017-713f7c9a5013
Brody
Brody•4mo ago
the team is actively working on improving this experience
luci1
luci1•4mo ago
any way to check the deploy logs?
No description
Brody
Brody•4mo ago
has the deployment went through?
luci1
luci1•4mo ago
nah, its in infinite loop yet i will try create the deploy using railway.toml + dockerfile
Brody
Brody•4mo ago
there wouldnt be any deployment logs without the deployment going through that would not solve anything
luci1
luci1•4mo ago
😢 dammn
Brody
Brody•4mo ago
this issue affects all deployments regardless of how they are built or where they are deployed from the most you can do is to cancel it and try again
luci1
luci1•4mo ago
yeah, i made it work using nixpacks.toml searching about a golang template, thanks
No description
Brody
Brody•4mo ago
please keep in mind that it works because you re-deployed, not because you now have a nixpacks.toml
luci1
luci1•4mo ago
yeah, i know, but for the moment it's working (urgently) i keep the dockerfile but renamed to a random file, like docker-file.txt to use in the future and thanks for your help!
Want results from more Discord servers?
Add your server