File size: 613 Bytes
6fb6079
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48635ae
6fb6079
 
 
4e3f7c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM openjdk:18

# Set working directory
WORKDIR /ai

# Define the version as a build argument
ARG VERSION=0.2.3
ARG REPO=SpringActions
ARG REPO_OWNER=vishalmysore

# Download the JAR file using curl with the version variable
RUN curl -L -o /ai/mcpdemo.jar https://github.com/sumit-kraken/moltbook-new/releases/download/1.0.0/moltbook-agent-1.0.0.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

RUN sed -i -e 's/\r$//' /entrypoint.sh


# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]