File size: 639 Bytes
81225b0
 
 
 
4fe5f7e
81225b0
 
4fe5f7e
b1e8819
 
 
4fe5f7e
81225b0
 
 
 
d08df55
d6721eb
81225b0
 
 
ea15c79
1a79a4a
b1e8819
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"]