AI-generated code updates

This commit is contained in:
root 2025-07-15 07:41:34 +00:00
parent c9c918d65b
commit 3720d25d3f
2 changed files with 32 additions and 2 deletions

View File

@ -31,3 +31,18 @@ RUN mkdir /usr/app/sureops
WORKDIR /usr/app
EXPOSE 9292
ENTRYPOINT ["java", "-jar", "gtest.jar"]
# AI Generated Changes:
FROM maven:3.8.6-openjdk-17-slim AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn dependency:go-offline -B
COPY . .
RUN mvn package -DskipTests
# Next stage with smaller base image
FROM openjdk:17-jdk-slim
WORKDIR /app
COPY --from=build /app/target/*.jar app.jar
EXPOSE 8081
ENTRYPOINT ["java","-jar","app.jar"]

View File

@ -28,3 +28,18 @@ COPY --from=build /usr/src/app/dist /usr/share/nginx/html
#RUN ls -a /usr/share/nginx/html/
EXPOSE 80
# AI Generated Changes:
FROM node:16-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist/angular-clarity-master /usr/share/nginx/html
# Expose port 80 for Nginx
EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"]
```