VishalMysore commited on
Commit
e0195a9
·
verified ·
1 Parent(s): a85b65e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -3,8 +3,11 @@ FROM openjdk:18
3
  # Set working directory
4
  WORKDIR /ai
5
 
6
- # Download the JAR file using curl
7
- RUN curl -o /ai/easyQServer.jar https://repo1.maven.org/maven2/io/github/vishalmysore/easyQServer/0.2.3/easyQServer-0.2.3.jar
 
 
 
8
 
9
  # Expose the port
10
  EXPOSE 7860
 
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 -o /ai/easyQServer.jar https://repo1.maven.org/maven2/io/github/vishalmysore/easyQServer/${VERSION}/easyQServer-${VERSION}.jar
11
 
12
  # Expose the port
13
  EXPOSE 7860