I wanted to setup this sftpgo server on fly.io but face some issues.
I setup my account, created an app and used following docker file.
Problem that I am facing now is that it does not want to build (I use the remote build machine)
➜ fly_sftpgo fly launch
An existing fly.toml file was found for app solitary-firefly-5064
App is not running, deploy...
==> Building image
Remote builder fly-builder-young-moon-572 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon 1.3kB
[+] Building 0.7s (9/27)
=> CACHED [internal] load remote build context 0.0s
=> CACHED copy /context / 0.0s
=> [internal] load metadata for docker.io/library/golang:1.19-bullseye 0.6s
=> [internal] load metadata for docker.io/library/debian:bullseye-slim 0.6s
=> [stage-1 1/14] FROM docker.io/library/debian:bullseye-slim@sha256:98d3b4b0cee264301eb1354e0b549323af2d0633e1c43375d0b25c01826b6790 0.0s
=> => resolve docker.io/library/debian:bullseye-slim@sha256:98d3b4b0cee264301eb1354e0b549323af2d0633e1c43375d0b25c01826b6790 0.0s
=> [builder 1/9] FROM docker.io/library/golang:1.19-bullseye@sha256:c3feb4bc19853836e788b21051b76b813a30457b3f77058991d3e170af0afa65 0.0s
=> CACHED [builder 2/9] RUN mkdir -p /workspace 0.0s
=> CACHED [builder 3/9] WORKDIR /workspace 0.0s
=> ERROR [builder 4/9] COPY go.mod ./ 0.0s
------
> [builder 4/9] COPY go.mod ./:
------
Error failed to fetch an image or build from source: error building: failed to compute cache key: "/go.mod" not found: not found
Not really sure what I am doing wrong here?