diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c887095 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM eclipse-temurin:19-jdk-jammy + +WORKDIR /app + +COPY .mvn/ .mvn +COPY mvnw pom.xml ./ +RUN ./mvnw dependency:resolve + +COPY src ./src + +CMD ["./mvnw", "spring-boot:run"] \ No newline at end of file diff --git a/src/main/java/com/apside/assist/db/backend/AssistDBBackendApplication.java b/src/main/java/com/apside/assist/db/backend/AssistDBBackendApplication.java index cee1b84..ba602ef 100644 --- a/src/main/java/com/apside/assist/db/backend/AssistDBBackendApplication.java +++ b/src/main/java/com/apside/assist/db/backend/AssistDBBackendApplication.java @@ -25,7 +25,7 @@ public class AssistDBBackendApplication { public CorsFilter corsFilter() { CorsConfiguration corsConfiguration = new CorsConfiguration(); corsConfiguration.setAllowCredentials(true); - corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:9002")); + corsConfiguration.setAllowedOrigins(Arrays.asList("http://178.18.0.4:9002", "http://localhost:9002")); corsConfiguration.setAllowedHeaders(Arrays.asList("Origin", ACCESS_CONTROL, "Content-Type", "Accept", "Authorization", "Origin, Accept", "X-Requested-With", "Access-Control-Request-Method", "Access-Control-Request-Headers"));