Upload Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM openjdk:18
|
| 2 |
+
|
| 3 |
+
# Set working directory
|
| 4 |
+
WORKDIR /ai
|
| 5 |
+
|
| 6 |
+
# Define the version as a build argument
|
| 7 |
+
ARG VERSION=0.2.3
|
| 8 |
+
ARG REPO=SpringActions
|
| 9 |
+
ARG REPO_OWNER=vishalmysore
|
| 10 |
+
|
| 11 |
+
# Download the JAR file using curl with the version variable
|
| 12 |
+
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
|
| 13 |
+
|
| 14 |
+
# Expose the port
|
| 15 |
+
EXPOSE 7860
|
| 16 |
+
|
| 17 |
+
# Copy the entrypoint script to the container
|
| 18 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 19 |
+
|
| 20 |
+
# Make the script executable
|
| 21 |
+
RUN chmod +x /entrypoint.sh
|
| 22 |
+
|
| 23 |
+
# Set the entrypoint
|
| 24 |
+
ENTRYPOINT ["/entrypoint.sh"]
|