Skip to content

How to run React app inside Docker with env vars #982

Description

@furlanrapha

Already set the env vars in my Docker on AWS, but the app is not using it when running.

Does anyone know how I can do it?

For development, I'm using the .env file. For the build, I'm putting the .env file in .dockerignore so this development file doesn't go into the build version. My intention is to use the default Env Vars configuration in AWS ECS.

I'm not using docker-compose. I'm just using the Dockerfile.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions