This commit is contained in:
parent
f517085741
commit
e20c5589a6
3 changed files with 16 additions and 2 deletions
|
@ -3,6 +3,10 @@ FROM maven:latest AS builder
|
|||
WORKDIR /app
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
ARG LOCAL=false
|
||||
RUN if [ "$LOCAL" = "true" ]; then \
|
||||
cp src/main/resources/local.application.properties src/main/resources/application.properties; \
|
||||
fi
|
||||
RUN mvn clean package -DskipTests
|
||||
|
||||
# Stage 2: Create the final lightweight image
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
spring.application.name=silly-game
|
||||
|
||||
spring.mail.host=localhost
|
||||
spring.mail.host=mailhog.mailhog.svc.cluster.local
|
||||
spring.mail.port=1025
|
||||
spring.mail.username=
|
||||
spring.mail.password=
|
||||
spring.mail.properties.mail.smtp.auth=false
|
||||
spring.mail.properties.mail.smtp.starttls.enable=false
|
||||
|
||||
cors.allowed-origin=http://localhost:4200
|
||||
cors.allowed-origin=http://silly-game-frontend-service.silly-game.svc.cluster.local
|
10
src/main/resources/local.application.properties
Normal file
10
src/main/resources/local.application.properties
Normal file
|
@ -0,0 +1,10 @@
|
|||
spring.application.name=silly-game
|
||||
|
||||
spring.mail.host=localhost
|
||||
spring.mail.port=1025
|
||||
spring.mail.username=
|
||||
spring.mail.password=
|
||||
spring.mail.properties.mail.smtp.auth=false
|
||||
spring.mail.properties.mail.smtp.starttls.enable=false
|
||||
|
||||
cors.allowed-origin=http://localhost:4200
|
Loading…
Reference in a new issue