- Supplement and Ingredient entities with UUID primary keys - CRUD REST API with pagination, filtering, and full-text search - Liquibase migrations with PostgreSQL tsvector full-text index - SpringDoc OpenAPI documentation - RFC 7807 Problem Details error handling - Unit tests for service, mapper, and controller layers (23 tests) - Dockerfile (multi-stage) and docker-compose.yaml for local dev - Application profiles: default, dev, prod
13 lines
302 B
Docker
13 lines
302 B
Docker
FROM eclipse-temurin:21-jdk-alpine AS build
|
|
WORKDIR /app
|
|
COPY pom.xml .
|
|
COPY src ./src
|
|
RUN apk add --no-cache maven && \
|
|
mvn clean package -DskipTests -q
|
|
|
|
FROM eclipse-temurin:21-jre-alpine
|
|
WORKDIR /app
|
|
COPY --from=build /app/target/*.jar app.jar
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["java", "-jar", "app.jar"]
|