mirror of https://github.com/kortix-ai/suna.git
19 lines
350 B
Docker
19 lines
350 B
Docker
|
FROM python:3.11-slim
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Copy requirements first for better layer caching
|
||
|
COPY requirements.txt .
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
# Copy the backend code
|
||
|
COPY . .
|
||
|
|
||
|
# Set environment variable
|
||
|
ENV PYTHONPATH=/app
|
||
|
|
||
|
# Expose the port the app runs on
|
||
|
EXPOSE 8000
|
||
|
|
||
|
# Command to run the application
|
||
|
CMD ["python", "api.py"]
|