You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Install doesn't downloads $filename on linux #5055
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
tar \
less \
tree \
ripgrep && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ARG VERSION=v1.0.137
ENV VERSION=$VERSION
ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
RUN ./install.sh
CMD ["/bin/bash"]
podman build -t opencode -f opencode.dockerfile .
...
STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
https://raw.githubusercontent.com/sst/opencode/v1.0.137/install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9726 100 9726 0 0 1840 0 0:00:05 0:00:05 --:--:-- 2148
--> 855e58476676
STEP 8/9: RUN ./install.sh
Installing opencode version: v1.0.137
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
STEP 4/9: ARG VERSION=dev
--> 73d9a6f4ee29
STEP 5/9: ENV VERSION=$VERSION
--> 7711dea7310e
STEP 6/9: ARG url="https://raw.githubusercontent.com/sst/opencode/$VERSION/install"
--> d8a52ec2bdcd
STEP 7/9: RUN echo $url && curl -H 'Cache-Control: no-cache' -L "$url" -o install.sh && chmod 744 install.sh
https://raw.githubusercontent.com/sst/opencode/dev/install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9865 100 9865 0 0 1854 0 0:00:05 0:00:05 --:--:-- 2587
--> 890a8738b6d0
STEP 8/9: RUN ./install.sh
Installing opencode version: dev
######################################################################## 100.0%
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: building at STEP "RUN ./install.sh": while running runtime: exit status 2
Activity
github-actions commentedon Dec 4, 2025
This issue might be a duplicate of existing issues. Please check:
unzipis present #3501: Installer should check ifunzipis present (similar install script issues on Linux)curlcan't install #4064:curlcan't install (related curl install script issues)Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 13, 2025
You're saying that the curl script doesn't work on linux? can u tell me more about your os and arch?
Rom888 commentedon Dec 14, 2025
Right,
Ubuntu 24.04
amd64
rekram1-node commentedon Dec 14, 2025
can you share your actual error message or issue you encounter?
The script definitely works on linux, but maybe it is missing something specific for your system
Rom888 commentedon Dec 15, 2025
podman build -t opencode -f opencode.dockerfile .
rekram1-node commentedon Dec 16, 2025
Hm try now maybe?
rekram1-node commentedon Dec 16, 2025
well i just updated it, maube in like 10 min or so try it
Rom888 commentedon Dec 16, 2025
Tried with dev branch:
rekram1-node commentedon Dec 16, 2025
Tested w/ your dockerfile, should be fixed now