File size: 639 Bytes
3b8a335
 
 
 
b9486c8
3b8a335
 
b9486c8
3c78aaf
 
 
b9486c8
3b8a335
 
 
 
d23178a
5db5412
3b8a335
 
 
97618dc
a4163f3
3c78aaf
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"]