VishalMysore commited on
Commit
3497f7a
·
verified ·
1 Parent(s): e61e1bf

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +22 -0
  2. entrypoint.sh +4 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM openjdk:18
2
+
3
+ # Set working directory
4
+ WORKDIR /ai
5
+
6
+ # Define the version as a build argument
7
+ ARG VERSION=0.2.3
8
+
9
+ # Download the JAR file using curl with the version variable
10
+ RUN curl -L -o /ai/mcpdemo.jar https://github.com/vishalmysore/ragevalinjava/releases/download/hugginface/a2aClient-${VERSION}.jar
11
+
12
+ # Expose the port
13
+ EXPOSE 7860
14
+
15
+ # Copy the entrypoint script to the container
16
+ COPY entrypoint.sh /entrypoint.sh
17
+
18
+ # Make the script executable
19
+ RUN chmod +x /entrypoint.sh
20
+
21
+ # Set the entrypoint
22
+ ENTRYPOINT ["/entrypoint.sh"]
entrypoint.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/sh
2
+ ls -l /ai
3
+ # Start the Java application
4
+ exec java -Djava.security.egd=file:/dev/./urandom -jar /ai/mcpdemo.jar