Skip to content

Commit 805aad7

Browse files
committed
chore: finalize module build configurations and optimize Dockerfile
1 parent a00c94d commit 805aad7

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ WORKDIR /app
4848

4949
# --- Cópia do Artefato Específico ---
5050
# Copia apenas o JAR executável do módulo de configuração (o principal)
51-
COPY --from=builder /app/wallet-config/target/wallet-config-1.0.0.jar app.jar
51+
COPY --from=builder /app/wallet-config/target/wallet-config.jar app.jar
5252

5353
# Expor a porta da aplicação
5454
EXPOSE 8080
@@ -59,10 +59,14 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
5959

6060
# --- Entrypoint Otimizado ---
6161
# Executa a JVM diretamente, permitindo que ela receba sinais do SO
62+
## Configuração de JVM otimizada para Containers
6263
ENTRYPOINT ["java", \
6364
"-XX:+UseContainerSupport", \
64-
"-XX:MaxRAMPercentage=75.0", \
65+
"-XX:+AlwaysPreTouch", \
66+
"-XX:InitialRAMPercentage=30.0", \
67+
"-XX:MaxRAMPercentage=80.0", \
6568
"-XX:+UseG1GC", \
6669
"-Djava.security.egd=file:/dev/./urandom", \
70+
"-Djava.net.preferIPv4Stack=true", \
6771
"-jar", \
6872
"app.jar"]

wallet-config/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
</dependencies>
3636

3737
<build>
38+
<finalName>wallet-config</finalName>
3839
<plugins>
3940
<plugin>
4041
<groupId>org.springframework.boot</groupId>

wallet-core/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@
1919
</dependency>
2020
</dependencies>
2121

22+
<build>
23+
<finalName>wallet-core</finalName>
24+
</build>
25+
2226
</project>

wallet-dataprovider/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@
5252

5353
</dependencies>
5454

55+
<build>
56+
<finalName>wallet-dataprovider</finalName>
57+
</build>
58+
5559
</project>

wallet-entrypoint/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@
6363
</dependency>
6464
</dependencies>
6565

66+
<build>
67+
<finalName>wallet-entrypoint</finalName>
68+
</build>
69+
6670
</project>

0 commit comments

Comments
 (0)