27 lines
505 B
Docker
27 lines
505 B
Docker
FROM python:3.11-slim
|
|
|
|
# Install Git
|
|
RUN apt-get update && \
|
|
apt-get install -y git && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy agent code
|
|
COPY agent/ /app/agent/
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r /app/agent/requirements.txt
|
|
|
|
# Create workspace directory
|
|
RUN mkdir -p /workspace
|
|
|
|
# Set environment variables
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV WORKSPACE_DIR=/workspace
|
|
|
|
# Run agent
|
|
CMD ["python", "-m", "agent.main"]
|