feat: merge front and server dockerfiles and optimize build (#4589)

* feat: merge front and server dockerfiles and optimize build

* fix: update image label

* fix: bring back support for REACT_APP_SERVER_BASE_URL injection at runtime

* fix: remove old entries & add nx cache in dockerignore

* feat: generate frontend config at runtime using Nest

* fix: format and filename

* feat: use the EnvironmentService and leave default blank

* feat: add support for DB migrations
This commit is contained in:
Quentin G
2024-03-21 19:22:21 +01:00
committed by GitHub
parent 3fa8c4bace
commit 1aa48d3bf7
9 changed files with 146 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import '@sentry/tracing';
import { AppModule } from './app.module';
import { generateFrontConfig } from './utils/generate-front-config';
import { settings } from './engine/constants/settings';
import { LoggerService } from './engine/integrations/logger/logger.service';
import { EnvironmentService } from './engine/integrations/environment/environment.service';
@ -60,6 +61,9 @@ const bootstrap = async () => {
}),
);
// Create the env-config.js of the front at runtime
generateFrontConfig();
await app.listen(app.get(EnvironmentService).get('PORT'));
};