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

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

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
Looks like the build is failing because it can’t find your .env file during the Docker build. In local dev, the file is probably there, but in the remote build context (like with DigitalOcean’s App Platform), only files explicitly added get included.
If your Dockerfile has something like COPY . ., but .env is in your .dockerignore, it won’t be copied. Either remove .env from .dockerignore or pass environment variables another way, like through the App Platform’s “Environment Variables” section (which is actually the recommended way).
- Bobby
Heya, @pauladeyenuwo
On top of what’s mentioned you can check our docs on How to Use Environment Variables in App Platform:
https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/
Regards