Handling .env in Production with Docker and Effect Typescript

I am loading .env values in my app using PlatformConfigProvider , but in production I am using docker for building and running the app , I am providing env values at runtime , i am not keeping .env as part of build image ( which is not recommended as well ) , How can I make sure it works in prod as well , right now it throws error .env does not exist
const EnvProviderLayer = Layer.unwrapEffect(
  PlatformConfigProvider.fromDotEnv(".env").pipe(
    Effect.map(Layer.setConfigProvider),
    Effect.provide(NodeFileSystem.layer)
  )
Was this page helpful?