feat: initial nutri-api — Spring Boot REST API for supplement catalog
- 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
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user