uygulamamı çalıştırdığımda loglarda bu hatayı alıyorum sebebi nedir?
This doesn’t seem to be a fly.io-specific issue. Is the file present in your dockerfile? If you run fly ssh console
you can look around to see if your file is there.
ARG GO_VERSION=1
FROM golang:${GO_VERSION}-bookworm as builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /run-app .
FROM debian:bookworm
COPY --from=builder /run-app /usr/local/bin/
CMD ["run-app"]
dockerfile is like this, it gets my other files but not the ones under templates/
Try adding the following immediately before the CMD
line:
COPY --from=builder /usr/src/app/templates /usr/src/app/templates
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.