phase 1
This commit is contained in:
33
Dockerfile
33
Dockerfile
@@ -1,13 +1,32 @@
|
||||
FROM ubuntu:24.04
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install OpenCode
|
||||
RUN curl -fsSL https://opencode.ai/install | bash
|
||||
|
||||
# Copy custom OpenCode configuration
|
||||
RUN mkdir -p /root/.config
|
||||
COPY ./config_opencode /root/.config/opencode
|
||||
# Copy OpenCode configuration
|
||||
COPY ../config_opencode /root/.config/opencode
|
||||
|
||||
# env var for the mcp server
|
||||
ARG MCP_SERVER
|
||||
ENV MCP_SERVER=$MCP_SERVER
|
||||
# Copy session manager
|
||||
COPY . /app
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Create working directory
|
||||
RUN mkdir -p /app/somedir
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# Start OpenCode web interface
|
||||
CMD ["opencode", "web", "--host", "0.0.0.0", "--port", "8080", "--workdir", "/app/somedir"]
|
||||
Reference in New Issue
Block a user