Skip to content

open ../.env: no such file or directory (Docker Image build) #236

@Ndeta100

Description

@Ndeta100

I get this error when I build and publish my docker image then I try to pull and run it locally or on a vm with coolify. I have added my env as github secrets for the builf process but I still get the same error, even after adding the env variables to coolify. It suggested I neeet to comment out godotenv.Load(), but still same issue. Anyone can help?

func init() { if err := godotenv.Load(); err != nil { log.Fatal(err) } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions