Skip to content

Commit df93e84

Browse files
committed
ADDING DOCKERFILE UPDATES
1 parent 387b96d commit df93e84

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM openjdk:latest
2-
COPY ./target/classes/com /tmp/com
2+
COPY ./target/seMethods-1.0-SNAPSHOT-jar-with-dependencies.jar /tmp
33
WORKDIR /tmp
4-
ENTRYPOINT ["java", "com.napier.sem.App"]
4+
ENTRYPOINT ["java", "-jar", "seMethods-1.0-SNAPSHOT-jar-with-dependencies.jar"]

src/main/java/com/napier/sem/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class App
1010
public static void main(String[] args)
1111
{
1212
// Connect to MongoDB on local system - we're using port 27000
13-
MongoClient mongoClient = new MongoClient("localhost", 27000);
13+
MongoClient mongoClient = new MongoClient("mongo-dbserver");
1414
// Get a database - will create when we use it
1515
MongoDatabase database = mongoClient.getDatabase("mydb");
1616
// Get a collection from the database
-9 Bytes
Binary file not shown.

target/seMethods-1.0-SNAPSHOT.jar

-9 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)