0

I try to use my Dockerfile at https://labs.play-with-docker.com. Its EOL conversion is LF. My file:

FROM alpine
RUN apk --no-cache add curl
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
WORKDIR /root/.deno/bin
# To print deno version at container start.
CMD ["/root/.deno/bin/deno", "--version"]

I start the commands:

docker build -t deno .
docker run --rm --name deno deno

But I get the error:

standard_init_linux.go:211: exec user process caused "no such file or directory"

Why does it happen? How can I fix it?

Dashrath Mundkar
  • 7,956
  • 2
  • 28
  • 42
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
  • 2
    Does this answer your question? [Cannot create deno docker image](https://stackoverflow.com/questions/61793815/cannot-create-deno-docker-image). Alpine is missing `glibc` without which `deno` won't run. – Matus Dubrava Jul 17 '20 at 20:29
  • using ```FROM frolvlad/alpine-glibc``` solved the issue for me – Robert Fent May 21 '21 at 14:35

1 Answers1

1

something is wrong with alpine and deno installer. it just can execute deno after installation.

Meanwhile this works just fine:

FROM ubuntu
RUN apt-get update
RUN apt-get install -y curl bash unzip
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
CMD ["/root/.deno/bin/deno", "--version"]
user2932688
  • 1,546
  • 11
  • 24