a2amcpdatabase / Dockerfile
VishalMysore's picture
Update Dockerfile
ec27c27 verified
raw
history blame contribute delete
567 Bytes
FROM openjdk:18
# Set working directory
WORKDIR /ai
# Define the version as a build argument
ARG VERSION=0.0.1
ARG REPO=SqlAIAgent
ARG REPO_OWNER=vishalmysore
# Download the JAR file using curl with the version variable
RUN curl -L -o /ai/mcpdemo.jar https://github.com/vishalmysore/SqlAIAgent/releases/download/a2ui-1/AIAgentForSQL-0.0.1.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"]