- Refactored `validateApp` in `AppsService` to return `Optional<App>` instead of `null`.
- Updated `JwtTokenService` to handle `expiration` parameter and use `App` object for token creation.
- Improved `TokenController` to work with the updated service layer.
- Fixed typo in `Report.vue` ("Airfreight" to "Air freight").
- Updated application properties to use `SPRING_PROFILES_ACTIVE`.
- Added `.dockerignore`, `dockerfile`, and `docker-compose.yml`, enabling Docker support.
- Removed unused Maven plugins and updated `vite.config.js` build directory.
- Introduced Gitea CI workflows for building and pushing Docker images.
20 lines
No EOL
517 B
Text
20 lines
No EOL
517 B
Text
FROM node:20-alpine AS frontend-build
|
|
WORKDIR /app/frontend
|
|
COPY src/frontend/package*.json ./
|
|
RUN npm ci
|
|
COPY src/frontend/ ./
|
|
RUN npm run build
|
|
|
|
FROM maven:3.9-eclipse-temurin-23 AS backend-build
|
|
WORKDIR /app
|
|
COPY pom.xml ./
|
|
COPY src ./src
|
|
# copy frontend
|
|
COPY --from=frontend-build /app/frontend/dist ./src/main/resources/static
|
|
RUN mvn clean package -DskipTests
|
|
|
|
FROM eclipse-temurin:23-jre-alpine
|
|
WORKDIR /app
|
|
COPY --from=backend-build /app/target/*.jar app.jar
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java", "-jar", "app.jar"] |