From edbca2067e10b1d19f50af7c44dbcf434e87ac0e Mon Sep 17 00:00:00 2001 From: barshathakuri Date: Thu, 1 Aug 2024 16:25:02 +0545 Subject: [PATCH] Add env to docker compose file --- docker-compose-prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml index f1415f1..7af4362 100644 --- a/docker-compose-prod.yml +++ b/docker-compose-prod.yml @@ -101,6 +101,8 @@ services: APP_GRAPHQL_API_ENDPOINT: ${FRONTEND_APP_GRAPHQL_API_ENDPOINT?error} APP_MAPBOX_ACCESS_TOKEN: ${FRONTEND_APP_MAPBOX_ACCESS_TOKEN?error} APP_GRAPHQL_CODEGEN_ENDPOINT: ${FRONTEND_APP_GRAPHQL_CODEGEN_ENDPOINT?error} + env_file: + - .env command: | sh -c 'pnpm generate && pnpm build && rm -rf /client-build/* ; cp -r build/* /client-build/' volumes: