Spaces:
Running
Running
OpenSIN-AI commited on
Commit ·
799c15a
1
Parent(s): 776d89d
fix: correct opencode release v1.4.3 linux-x64 tarball
Browse files- Dockerfile +3 -10
Dockerfile
CHANGED
|
@@ -2,21 +2,14 @@ FROM python:3.11-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
|
| 6 |
-
RUN apt-get update && apt-get install -y \
|
| 7 |
-
git curl ca-certificates \
|
| 8 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
# opencode CLI binary (NOT desktop deb!)
|
| 11 |
RUN set -eux; \
|
| 12 |
-
|
| 13 |
-
echo "Downloading opencode CLI v1.3.17 (attempt $i)..."; \
|
| 14 |
-
curl -fL --retry 3 --retry-delay 2 -o opencode.tar.gz "https://github.com/anomalyco/opencode/releases/download/v1.3.17/opencode-linux-amd64.tar.gz" && break || sleep 5; \
|
| 15 |
-
done; \
|
| 16 |
tar -xzf opencode.tar.gz -C /usr/local/bin opencode; \
|
| 17 |
rm -f opencode.tar.gz; \
|
| 18 |
chmod +x /usr/local/bin/opencode; \
|
| 19 |
-
|
| 20 |
|
| 21 |
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
RUN apt-get update && apt-get install -y git curl ca-certificates && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
| 6 |
|
|
|
|
| 7 |
RUN set -eux; \
|
| 8 |
+
curl -fL -o opencode.tar.gz "https://github.com/anomalyco/opencode/releases/download/v1.4.3/opencode-linux-x64.tar.gz"; \
|
|
|
|
|
|
|
|
|
|
| 9 |
tar -xzf opencode.tar.gz -C /usr/local/bin opencode; \
|
| 10 |
rm -f opencode.tar.gz; \
|
| 11 |
chmod +x /usr/local/bin/opencode; \
|
| 12 |
+
opencode --version
|
| 13 |
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|