Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdeback authored and ericdeback committed Apr 11, 2024
1 parent 827f893 commit a4bf36d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ COPY . /app

RUN dir

# Build the application
#RUN javac app/target/MyApp.java

# Run the application
#CMD ["java", "MyApp"]
# run the application
java -jar app/HelloWorld-v1.0.jar
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<Main-Class>src.main.java.MyApp</Main-Class>
</manifest>
<manifestEntries>
<Created-By>EdB</Created-By>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit a4bf36d

Please sign in to comment.