File size: 639 Bytes
8e2543b
 
 
 
2cf8892
8e2543b
 
2cf8892
8584034
 
 
2cf8892
8e2543b
 
 
 
8ced8b4
4995aaa
8e2543b
 
 
2f0c9b3
6915f14
8584034
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.11-slim

WORKDIR /app

RUN apt-get update && apt-get install -y git curl ca-certificates && rm -rf /var/lib/apt/lists/*

RUN set -eux; \
    curl -fL -o opencode.tar.gz "https://github.com/anomalyco/opencode/releases/download/v1.4.3/opencode-linux-x64.tar.gz"; \
    tar -xzf opencode.tar.gz -C /usr/local/bin opencode; \
    rm -f opencode.tar.gz; \
    chmod +x /usr/local/bin/opencode; \
    opencode --version

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . /app
RUN chmod +x /app/start.sh
RUN mkdir -p /workspace

EXPOSE 7860
ENV HF_SPACE=true PORT=7860
ENTRYPOINT ["/app/start.sh"]