Error: failed to fetch an image or build from source: error building: failed to solve with frontend dockerfile.v0

I’m receiving this error using CD style deployment like in this guide Continuous Deployment with Fly.io and GitHub Actions · Fly Docs

I’m using Docker and I’m receiving this error
`Run flyctl deploy --remote-only
==> Verifying app config
Validating /home/runner/work/RustyDrop/RustyDrop/fly.toml
→ Verified app config
Platform: machines
✓ Configuration is valid
==> Building image
Waiting for remote builder fly-builder-fragrant-grass-7647…
Remote builder fly-builder-fragrant-grass-7647 ready
==> Creating build context
→ Creating build context done
time=“2023-06-22T04:02:06Z” level=error msg=“Error matching .dockerignore: syntax error in pattern”
==> Building image with Docker
→ docker host: 20.10.12 linux x86_64
Sending build context to Docker daemon 32B

#1 [internal] load remote build context
#1 CACHED

#2 copy /context /
#2 CACHED
Error: failed to fetch an image or build from source: error building: failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /data/docker/tmp/buildkit-mount699370408/Dockerfile: no such file or directory

Error: Process completed with exit code 1.`

the repo in question: AbdesamedBendjeddou/RustyDrop: P2P file transfer powered by Rust, WASM and WebRTC (github.com)

Problem is in your dockerignore. Try backslashes instead of forward slashes

Thanks! that fixed it

1 Like