-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 790 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 790 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
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy pyproject.toml and install dependencies
COPY pyproject.toml ./
COPY README.md ./
# Create a requirements.txt from pyproject.toml for easier installation
RUN pip install --upgrade pip && \
pip install build && \
python -m build && \
pip install dist/*.whl
# Copy the rest of the application
COPY agentbridge/ ./agentbridge/
COPY example*.py ./
COPY tests/ ./tests/
# Create logs directory
RUN mkdir -p logs
# Expose the default port
EXPOSE 8080
# Set up entrypoint
CMD ["python3", "-c", "from agentbridge import AgentBridge; import asyncio; bridge = AgentBridge(); asyncio.run(bridge.start_server())"]