Replies: 3 comments 32 replies
-
Yes, my
It won't, only 0.5 GB. Try to build it. |
Beta Was this translation helpful? Give feedback.
-
@gAlleb Remember you’ll need an ffmpeg with |
Beta Was this translation helpful? Give feedback.
-
Hi, @vitoyucepi. So I found another use for Docker :) and compiled FROM golang:1.22-bookworm
RUN apt-get update \
&& apt-get install -y --no-install-recommends openssl git
RUN go install github.com/jwilder/dockerize@v0.6.1
RUN go install github.com/aptible/supercronic@v0.2.28
RUN mkdir -p /tmp/centrifugo \
&& cd /tmp/centrifugo \
&& git clone https://github.com/centrifugal/centrifugo.git . \
&& git checkout 5.4.0_dev \
&& go build \
&& mv ./centrifugo /go/bin/centrifugo It's nice so you don't have to install all the packages on your system and increase number of trash. Then I got a 60MB binary and removed 2GB! container. Binary is working fine. So I decided to make a docker image with it to test (and maybe accommodating it within LS Docker). It is straightforward and I've made the same steps as guys at centrifugo do (alike their docker repository): FROM alpine:3.19
RUN apk --no-cache upgrade && apk --no-cache add ca-certificates
COPY centrifugo /usr/local/bin/centrifugo
WORKDIR /centrifugo
CMD ["centrifugo"] But It refuses to work (and I have tried even pulling their official binary and building again with it). Just doesn't want to start:
That's what I got. I've tried lot's of options, with x, a+x, non of that too — doesn't work. Any insights on that? Probably I'm doing something wrong. Thanks! |
Beta Was this translation helpful? Give feedback.
-
#3925 (reply in thread)
Thank you, @vitoyucepi!
I've just looked here: https://github.com/savonet/liquidsoap/blob/main/.github/docker/Dockerfile.production-alpine
And if I try to do the same with older versions I get
Main idea was keeping image minimal but with python3 and ffprobe.
Looks nice, but some parts are not understandable. Why do you use both
alpine
andubuntu
? Alpine just to download the package?I think I can build image with
ubuntu
but this would require super skills to know how to installonly needed
packages for LS .deb andcue_file
to work. Because if one installs blindly - it would all take up to 1GB of space again.This bit seems distant as ever.
Beta Was this translation helpful? Give feedback.
All reactions