You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/Dockerfile

26 lines
562 B

2 weeks ago
# Use Python 3.11 instead of 3.13
FROM python:3.11-slim
# Set environment variables
2 weeks ago
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
WORKSPACE_DIR="agent_workspace" \
OPENAI_API_KEY="your_swarm_api_key_here"
2 weeks ago
# Set the working directory
WORKDIR /usr/src/swarms
2 weeks ago
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
gfortran \
&& rm -rf /var/lib/apt/lists/*
2 weeks ago
# Install swarms package
RUN pip3 install -U swarm-models
RUN pip3 install -U swarms
2 weeks ago
# Copy the application
COPY . .