opencode-api / Dockerfile
AUXteam's picture
Upload folder using huggingface_hub
1d3620d verified
raw
history blame
513 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/.local/bin:$PATH"
COPY requirements.txt .
RUN uv pip install --system --no-cache -r requirements.txt
COPY . .
ENV PYTHONPATH=/app
ENV OPENCODE_STORAGE_PATH=/app
RUN chmod -R 777 /app
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]