-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 845 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 845 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM python:3.13-slim
# Install system dependencies including Java and Maven
RUN apt-get update && apt-get install -y \
curl \
openjdk-21-jdk \
maven \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Set working directory
WORKDIR /app
# Copy dependency files
COPY pyproject.toml uv.lock ./
# Install dependencies
RUN uv sync --frozen
COPY serverless-workflow serverless-workflow
WORKDIR serverless-workflow
RUN mvn clean package
RUN mkdir -p /app/kogito && \
cp target/my-workflow-project-1.0-SNAPSHOT.jar /app/kogito/app.jar && \
cp target/dependency/* /app/kogito/ 2>/dev/null || true
WORKDIR /app
# Copy application code
COPY mcp_server.py ./
COPY tools/ ./tools/
# Expose port
EXPOSE 8000
# Run the application
CMD ["uv", "run", "python", "mcp_server.py"]