diff --git a/Dockerfile b/Dockerfile index 3cf8700..b0f9e6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN dotnet restore "skydiveLogs-api/skydiveLogs-api.csproj" RUN dotnet publish "skydiveLogs-api/skydiveLogs-api.csproj" -c Release -o /app/publish # Use the official node image to build the Angular app -FROM node:20-alpine AS build-frontend +FROM node:22-alpine AS build-frontend WORKDIR /app COPY ["Front/skydivelogs-app/package.json", "Front/skydivelogs-app/package-lock.json*", "./"] RUN npm install @@ -27,7 +27,7 @@ COPY nginx.conf /etc/nginx/sites-available/default RUN rm -rf /usr/share/nginx/html/* # Copy frontend dist folder to nginx html directory -COPY --from=build-frontend /app/dist/browser /usr/share/nginx/html +COPY --from=build-frontend --exclude=/app/dist/browser/config/* /app/dist/browser /usr/share/nginx/html RUN mkdir -p /usr/share/nginx/html/config # Copy backend from the correct build stage diff --git a/Front/skydivelogs-app/src/app/app.component.ts b/Front/skydivelogs-app/src/app/app.component.ts index 8538e40..db7bec3 100644 --- a/Front/skydivelogs-app/src/app/app.component.ts +++ b/Front/skydivelogs-app/src/app/app.component.ts @@ -80,7 +80,8 @@ export class AppComponent implements OnInit { }); } - ngOnInit() { + ngOnInit() {} + ngAfterViewInit() { this.serviceComm.componentTitle.subscribe( (title) => (this.translatedTitle = title), );