diff --git a/backend/Dockerfile b/backend/Dockerfile index 1dfa9e77..5c7ac374 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -3,7 +3,7 @@ FROM maven:3.8.5-openjdk-17 AS build WORKDIR /app COPY pom.xml . COPY src ./src -RUN mvn clean package -DskipTests +RUN mvn clean package # Stage 2: Run the application FROM openjdk:17-jdk-slim @@ -16,7 +16,7 @@ COPY --from=build /app/target/*.jar backend.jar EXPOSE 8080 # EXPOSE 443 -# urn the Spring Boot application +# Run the Spring Boot application ENTRYPOINT ["java", "-jar", "backend.jar"] #ENTRYPOINT ["java", "-jar", "backend.jar", "--server.ssl.enabled=true", "--server.ssl.key-store=certificate.p12", "--server.ssl.key-store-password=${KEY_STORE_PASS}", "--server.ssl.key-store-type=PKCS12", "--server.ssl.key-store-alias=${KEY_STORE_ALIAS}"] diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index ec2d4d60..4874053d 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -10,11 +10,11 @@ app.jwtExpirationInMs=86400000 gemini.api.key=${GEMINI_API_KEY:"GEMINI_API_KEY"} -#ALLOWED_ORIGINS=${ALLOWED_ORIGINS} +#ALLOWED_ORIGINS=${ALLOWED_ORIGINS:localhost:3000} server.port=${PORT:8080} #server.ssl.key-store=classpath:keystore.p12 #server.ssl.key-store-password=${KEY_STORE_PASS} #server.ssl.keyStoreType=PKCS12 #server.ssl.key-alias=${KEY_STORE_ALIAS} -turnstile.secret-key=${TURNSTILE_SECRET:"0x0000"} \ No newline at end of file +turnstile.secret-key=${TURNSTILE_SECRET:"0x0000"}