Open cirolosapio opened 5 months ago
Probably vscode depends on glibc, and thus can not run on alpine. I don't think these errors come from Deno.
no vscode does not require gclib afaik if you use alpine image instead it works
using this reproduction check compose.yml and try switching image from alpine and denoland/deno:alpine
i just ran into a similar issue on denoland/deno:alpine
trying to use ffmpeg
.
❯ docker run --rm -it denoland/deno:alpine sh
/ # apk add ffmpeg
[...]
/ # ffmpeg
Error relocating /usr/local/lib/libgcc_s.so.1: _dl_find_object: symbol not found
works fine on the regular alpine image
I'm also getting similar errors due to switching to denoland/deno:alpine-2.0.3
from alpine:3.20.3
, when using php:
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick' (tried: /usr/lib/php83/modules/imagick (Error loading shared library /usr/lib/php83/modules/imagick: No such file or directory), /usr/lib/php83/modules/imagick.so (Error relocating /usr/local/lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found)) in Unknown on line 0
this is a serious issue
https://github.com/denoland/deno_docker/issues/350 is probably related
Also facing this issue.
RUN apk update && apk add --no-cache npm
RUN npm install pnpm yarn -g
> [11/18] RUN npm install pnpm yarn -g:
0.408 Error relocating /usr/local/lib/libgcc_s.so.1: _dl_find_object: symbol not found
0.408 Error relocating /usr/local/lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found
0.408 Error relocating /usr/local/lib/libgcc_s.so.1: __cpu_model: symbol not found
------
Dockerfile:27
--------------------
25 | ENV DENO_DIR=/usr/builds/deno-cache
26 | RUN apk update && apk add --no-cache npm
27 | >>> RUN npm install pnpm yarn -g
28 | # DOCKERFILE-X:END file="./deno" includedBy="dockerfile_1730902581" includeType="include"
29 | # DOCKERFILE-X:START file="./base-after" includedBy="dockerfile_1730902581" includeType="include"
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install pnpm yarn -g" did not complete successfully: exit code: 127
@Meldiron which version of the dockerfile are you using?
using denoland/deno:alpine as a base image to run a devcontainer run in this error: