Test
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -80,7 +80,8 @@ export class AppComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
ngOnInit() {}
|
||||
ngAfterViewInit() {
|
||||
this.serviceComm.componentTitle.subscribe(
|
||||
(title) => (this.translatedTitle = title),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user