Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 06f404c

Browse files
authored
Merge pull request #56 from noobdevsam/26-optimize_docker_container
merge from branch 26
2 parents 5cabab9 + 4ba1618 commit 06f404c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ services:
1818
# Application Service
1919
app:
2020
# Use the image built by the Spring Boot Maven plugin
21-
image: noobdevsam/spring-project-steganography-tool:0.0.1-SNAPSHOT
21+
image: docker.io/noobdevsam/spring-project-steganography-tool:v1
2222
container_name: stego-app
2323
ports:
2424
- "8080:8080"
25+
mem_limit: 2g
2526
environment:
2627
# Connect to the MySQL container
2728
- DATABASE_URL=jdbc:mysql://db-mysql:3306/stego
2829
- DATABASE_USER=user
2930
- DATABASE_PASSWORD=password
3031
# Point storage inside the container to the mounted volume
3132
- STORAGE_BASE_PATH=/app/storage
33+
# Other environment variables as needed
34+
- JAVA_TOOL_OPTIONS=-XX:MaxRAMPercentage=75.0
3235
volumes:
3336
# Mount the local storage directory into the container to persist files
3437
- storage_data:/app/storage

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>com.example</groupId>
1212
<artifactId>spring-project-steganography-tool</artifactId>
13-
<version>0.0.1-SNAPSHOT</version>
13+
<version>v1</version>
1414
<name>spring-project-steganography-tool</name>
1515
<description>A powerful and secure steganography tool built with Spring Boot 3</description>
1616
<url>https://github.com/noobdevsam/spring-project-steganography-tool</url>
@@ -103,7 +103,7 @@
103103
</excludes>
104104
<image>
105105
<name>noobdevsam/${project.artifactId}:${project.version}</name>
106-
<builder>paketobuildpacks/builder-jammy-tiny</builder>
106+
<builder>paketobuildpacks/builder-jammy-base</builder>
107107
<env>
108108
<!-- Configure the buildpack to use Java 25 -->
109109
<BP_JVM_VERSION>${java.version}</BP_JVM_VERSION>

0 commit comments

Comments
 (0)