finit icon indicating copy to clipboard operation
finit copied to clipboard

Problem with downloaded dockerfile

Open pwFoo opened this issue 3 years ago • 3 comments
trafficstars

Hi,

I downloaded finit / Dockerfile from article: https://troglobit.com/post/2022-01-16-finit-v4.2-released/

There were build problems I need to fix

  1. #288 (and found typo in documentation #289)
  2. Changes in Dockerfile Add build options.
RUN     sed -i 's/--with-keventd/--with-keventd --enable-static --enable-resolvconf-plugin --with-sulogin --enable-kernel-cmdline/' ./contrib/alpine/build.sh

Better set by env / args during build ?

Copy by so* instead of an hardcoded version string

RUN     cp -a \
        /lib/ld-musl-x86_64.so.1 \
        /usr/local/lib/libite.so* \
        /usr/local/lib/libuev.so* \
        \
        lib/

And third part:

#RUN    ln -s libite.so.5.3.0 libite.so.5
#RUN    ln -s libuev.so.2.2.0 libuev.so.2

pwFoo avatar Jun 21 '22 16:06 pwFoo

And binaries / libs should be minimized with strip?

RUN     find . -type f -exec strip {} \;

pwFoo avatar Jun 21 '22 16:06 pwFoo

The bundled Dockerfile is an example. If you have ideas on how to improve it I suggest you file a pull request instead.

troglobit avatar Jun 21 '22 20:06 troglobit

On second thought, where did you find that Dockerfile for Finit? I've looked around both on my blog and in the Finit repo -- but I cannot find a Dockerfile?

Maybe your issue was a question about how to write a Dockerfile for Finit?

troglobit avatar Jul 21 '22 10:07 troglobit

No replies to my questions regarding the Dockerfile, and issue #288 has just been closed. So I'm closing this issue too.

troglobit avatar Oct 16 '22 19:10 troglobit