VishalMysore commited on
Commit
0f11401
·
verified ·
1 Parent(s): 9aa5890

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -23
Dockerfile CHANGED
@@ -1,24 +1,24 @@
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
- ARG REPO=SpringActions
9
- ARG REPO_OWNER=vishalmysore
10
-
11
- # Download the JAR file using curl with the version variable
12
- RUN curl -L -o /ai/mcpdemo.jar https://github.com/${REPO_OWNER}/${REPO}/releases/download/release/${REPO}-${VERSION}.jar
13
-
14
- # Expose the port
15
- EXPOSE 7860
16
-
17
- # Copy the entrypoint script to the container
18
- COPY entrypoint.sh /entrypoint.sh
19
-
20
- # Make the script executable
21
- RUN chmod +x /entrypoint.sh
22
-
23
- # Set the entrypoint
24
  ENTRYPOINT ["/entrypoint.sh"]
 
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
+ ARG REPO=SpringActions
9
+ ARG REPO_OWNER=vishalmysore
10
+
11
+ # Download the JAR file using curl with the version variable
12
+ RUN curl -L -o /ai/mcpdemo.jar https://github.com/vishalmysore/frauddetectionagent/releases/download/alpha/FraudDetectionAgent-1.0-SNAPSHOT.jar
13
+
14
+ # Expose the port
15
+ EXPOSE 7860
16
+
17
+ # Copy the entrypoint script to the container
18
+ COPY entrypoint.sh /entrypoint.sh
19
+
20
+ # Make the script executable
21
+ RUN chmod +x /entrypoint.sh
22
+
23
+ # Set the entrypoint
24
  ENTRYPOINT ["/entrypoint.sh"]