Report this

What is the reason for this report?

My app deployment wit go 1.24.1 is failing

Posted on April 24, 2025

I am trying to deploy and I’m getting the error:

[2025-04-24 04:32:32] │ INFO[0033] Executing 0 build triggers                   
[2025-04-24 04:32:32] │ INFO[0033] Building stage 'alpine:latest' [idx: '1', base-idx: '-1'] 
[2025-04-24 04:32:32] │ error building image: error building stage: failed to optimize instructions: failed to get files used from context: failed to get fileinfo for /kaniko/0/app/.env: lstat /kaniko/0/app/.env: no such file or directory
[2025-04-24 04:32:32].

I am using golang:1.24-alpine but it’s not working. Can you help me check wha’t going on? Locally, the app works properly.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.