Skip to content

Commit e82a98f

Browse files
committed
updated docker file, maven.yml and gitignore
1 parent 6029f81 commit e82a98f

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
# Set up Docker Buildx for multi-platform builds
4343
- name: Set up Docker Buildx
4444
uses: docker/setup-buildx-action@v3
45-
45+
4646
- name: Debug File Listing
47-
run: ls -la ./ # Adjust path as necessary
47+
run: ls -la ./ # Adjust path as necessary
4848

4949
# Build the Docker image
5050
- name: Build Docker Image for waste management application
@@ -57,4 +57,4 @@ jobs:
5757
# Log out of Docker Hub
5858
- name: Log out of Docker Hub
5959
run: docker logout
60-
60+

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# the base image
2-
FROM amazoncorretto:17
1+
FROM openjdk:17
32

4-
# the JAR file path
3+
# Copy the JAR package into the image
54
ARG JAR_FILE=target/*.jar
6-
7-
# Copy the JAR file from the build context into the Docker image
85
COPY ${JAR_FILE} app.jar
96

10-
#CMD apt-get update -y
7+
# Expose the application port
8+
EXPOSE 8090
119

12-
# Set the default command to run the Java application
13-
ENTRYPOINT ["java", "-Xmx2048M", "-jar", "/app.jar"]
10+
# Run the App
11+
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 commit comments

Comments
 (0)