Spaces:
Running
Running
File size: 533 Bytes
9eeeb0c f6ec5e1 e0195a9 f6ec5e1 9eeeb0c f6ec5e1 9eeeb0c f6ec5e1 9eeeb0c f6ec5e1 9eeeb0c f6ec5e1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | FROM openjdk:18
# Set working directory
WORKDIR /ai
# Define the version as a build argument
ARG VERSION=0.2.3
# Download the JAR file using curl with the version variable
RUN curl -o /ai/easyQServer.jar https://repo1.maven.org/maven2/io/github/vishalmysore/easyQServer/${VERSION}/easyQServer-${VERSION}.jar
# Expose the port
EXPOSE 7860
# Copy the entrypoint script to the container
COPY entrypoint.sh /entrypoint.sh
# Make the script executable
RUN chmod +x /entrypoint.sh
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
|