Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -3,8 +3,11 @@ FROM openjdk:18
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /ai
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|