diff --git a/BE/error/Dockerfile b/BE/error/Dockerfile index dc25ddf9..9ccd2edf 100644 --- a/BE/error/Dockerfile +++ b/BE/error/Dockerfile @@ -1,4 +1,5 @@ -FROM openjdk:17-oracle +#FROM openjdk:17-oracle +FROM --platform=linux/amd64 openjdk:17-oracle RUN mkdir -p /logs ENV PROFILE defaultgi @@ -11,4 +12,4 @@ ENV DD_VERSION=${RELEASE_VERSION} ARG JAR_FILE="./build/libs/*.jar" COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java", "-jar", "/app.jar"] +ENTRYPOINT ["java", "-jar", "/app.jar"] \ No newline at end of file diff --git a/BE/error/src/main/java/com/example/demo/config/SwaggerConfig.java b/BE/error/src/main/java/com/example/demo/config/SwaggerConfig.java new file mode 100644 index 00000000..3101329c --- /dev/null +++ b/BE/error/src/main/java/com/example/demo/config/SwaggerConfig.java @@ -0,0 +1,21 @@ +package com.example.demo.config; + + +import io.swagger.v3.oas.models.Components; +import io.swagger.v3.oas.models.OpenAPI; +import io.swagger.v3.oas.models.info.Info; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class SwaggerConfig { + + @Bean + public OpenAPI openAPI() { + return new OpenAPI().components(new Components()).info(apiInfo()); + } + + private Info apiInfo() { + return new Info().title("ERROR API").description("ERROR Swagger").version("2.0.0"); + } +} \ No newline at end of file