question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run in Docker Alpine

See original GitHub issue
/usr/local/bin $ ./TwitchDownloaderCLI
/bin/sh: ./TwitchDownloaderCLI: not found

Is there some kind of .net/mono runtime i need to install, since i guess it’s made in c#? A basic alpine linux install doesn’t seem to be able to run this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Zibbpcommented, Apr 23, 2021

If anyone else has this issue and wants to run TwitchDownloader in an Alpine container I got it running by installing the following .net dependencies according to Microsoft’s documentation.

apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib

Here is my Dockerfile I created to run TwitchDownloader. I install the .net dependencies and ffmpeg. I also install the Inter font which Twitch uses so the chat render looks the same.

By default Alpine does not come with standard fonts so you will need to either install the default TwitchDownloader font or specify a custom one when rendering the chat with --font Inter. More information can be found on Alpine’s wiki

FROM alpine:3.13

RUN apk update && apk add bash icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib ffmpeg

RUN mkdir /root/.fonts

ADD ./Inter.otf /root/.fonts/

WORKDIR /usr/bin

RUN wget https://github.com/lay295/TwitchDownloader/releases/download/1.39.5/TwitchDownloaderCLI-LinuxAlpine-x64.zip && unzip TwitchDownloaderCLI-LinuxAlpine-x64.zip && chmod +x TwitchDownloaderCLI && rm TwitchDownloaderCLI-LinuxAlpine-x64.zip

WORKDIR /opt/app

CMD [ "TwitchDownloaderCLI" ]

The final image is about 170 megabytes. The same implementation using a debian:slim image is 500 megabytes.

0reactions
MrBraxcommented, Dec 23, 2020

Is there a reason you can’t use a debian based linux distro?

Not really, it’s just that alpine is tiny and is commonly used in docker. Probably too much effort to get working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Alpine executable binary not found even if in PATH
@jossefaz : I notice two strange things in your question: First you tag it as bash, but the error message you get does...
Read more >
How to Use the Alpine Docker Official Image
The fastest method involves running docker pull alpine from your terminal. This grabs the alpine:latest image (the most current available version) from Docker...
Read more >
Container with alpine failing to execute a file with not found
While building a container using alpine as a base image we can get a not found error while trying to execute a file...
Read more >
can't run nginx in alpine linux (docker)
3 Answers. The /run/nginx directory does not exist on the latest alpine containers. You can either create the directory or change the PID...
Read more >
can't use service or rc-service · Issue #183
I'm trying to run a service inside of the docker alpine:edge image but am getting the same result. For context: cat /etc/*-release 3.4.0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found