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
I tried installing code-server in a Dockerfile using https://code-server.dev/install.sh on the official Python docker image python:3-slim and the install script thought it was Fedora based instead of Debian (it's bookworm).
I ended up mixing and matching install snippets from the website and the install.sh contents, which probably is slightly better practice anyway:
STEP 5/20: RUN curl -fsSL https://code-server.dev/install.sh | sh && rm -rf /home/**/.cache/
Debian GNU/Linux 12 (bookworm)
Installing v4.97.2 of the amd64 deb package from GitHub.
+ mkdir -p ~/.cache/code-server
+ curl -#fL -o ~/.cache/code-server/code-server_4.97.2_amd64.deb.incomplete -C - https://github.com/coder/code-server/releases/download/v4.97.2/code-server_4.97.2_amd64.deb
######################################################################## 100.0%
+ mv ~/.cache/code-server/code-server_4.97.2_amd64.deb.incomplete ~/.cache/code-server/code-server_4.97.2_amd64.deb
+ dpkg -i ~/.cache/code-server/code-server_4.97.2_amd64.deb
Selecting previously unselected package code-server.
(Reading database ... 33940 files and directories currently installed.)
Preparing to unpack .../code-server_4.97.2_amd64.deb ...
Unpacking code-server (4.97.2) ...
Setting up code-server (4.97.2) ...
deb package has been installed.
To have systemd start code-server now and restart on boot:
sudo systemctl enable --now code-server@$USER
Or, if you don't want/need a background service you can run: code-serverDeploy code-server for your team with Coder: https://github.com/coder/coder
Actual
STEP 5/20: RUN curl -fsSL https://code-server.dev/install.sh | sh && rm -rf /home/**/.cache/
Fedora Linux 41 (Container Image)
Installing v4.97.2 of the amd64 rpm package from GitHub.
+ mkdir -p ~/.cache/code-server
+ curl -#fL -o ~/.cache/code-server/code-server-4.97.2-amd64.rpm.incomplete -C - https://github.com/coder/code-server/releases/download/v4.97.2/code-server-4.97.2-amd64.rpm
######################################################################## 100.0%
+ mv ~/.cache/code-server/code-server-4.97.2-amd64.rpm.incomplete ~/.cache/code-server/code-server-4.97.2-amd64.rpm
+ rpm -U ~/.cache/code-server/code-server-4.97.2-amd64.rpm
sh: 1: rpm: not found
subprocess exited with status 127
subprocess exited with status 127
Error: building at STEP "RUN curl -fsSL https://code-server.dev/install.sh | sh && rm -rf /home/**/.cache/": exit status 127
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
I am using a secure context.
Notes
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
OS/Web Information
code-server --version
: latestI tried installing code-server in a Dockerfile using https://code-server.dev/install.sh on the official Python docker image
python:3-slim
and the install script thought it was Fedora based instead of Debian (it's bookworm).I ended up mixing and matching install snippets from the website and the install.sh contents, which probably is slightly better practice anyway:
Distro detection seems to need a patch, though.
Steps to Reproduce
Expected
Actual
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
No response
The text was updated successfully, but these errors were encountered: