This commit is contained in:
2026-01-21 16:33:42 +01:00
parent 324fa7d4d0
commit f6c21258fd
2 changed files with 4 additions and 3 deletions

View File

@@ -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 RUN dotnet publish "skydiveLogs-api/skydiveLogs-api.csproj" -c Release -o /app/publish
# Use the official node image to build the Angular app # 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 WORKDIR /app
COPY ["Front/skydivelogs-app/package.json", "Front/skydivelogs-app/package-lock.json*", "./"] COPY ["Front/skydivelogs-app/package.json", "Front/skydivelogs-app/package-lock.json*", "./"]
RUN npm install RUN npm install
@@ -27,7 +27,7 @@ COPY nginx.conf /etc/nginx/sites-available/default
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
# Copy frontend dist folder to nginx html directory # 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 RUN mkdir -p /usr/share/nginx/html/config
# Copy backend from the correct build stage # Copy backend from the correct build stage

View File

@@ -80,7 +80,8 @@ export class AppComponent implements OnInit {
}); });
} }
ngOnInit() { ngOnInit() {}
ngAfterViewInit() {
this.serviceComm.componentTitle.subscribe( this.serviceComm.componentTitle.subscribe(
(title) => (this.translatedTitle = title), (title) => (this.translatedTitle = title),
); );