lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.89k stars 269 forks source link

Image build fails #645

Closed stelucz closed 5 months ago

stelucz commented 9 months ago

Local image build fails while copying files from multistage build. I have added ls -la in source build and required files to copy are not there.

buildah bud -t valheim:local .
...
[2/3] STEP 8/9: RUN ls -ln /lib/
total 24
drwxr-xr-x  2 0 0 4096 Sep 19 00:00 init
drwxr-xr-x  3 0 0 4096 Oct  5 18:08 lsb
drwxr-xr-x  3 0 0 4096 Apr 19  2021 systemd
drwxr-xr-x 15 0 0 4096 Nov  2  2019 terminfo
drwxr-xr-x  3 0 0 4096 Sep 19 00:00 udev
drwxr-xr-x  1 0 0 4096 Oct  5 18:08 x86_64-linux-gnu
[2/3] STEP 9/9: RUN ls -ln /usr/lib/
total 40
drwxr-xr-x 2 0 0 4096 May  3  2017 X11
drwxr-xr-x 5 0 0 4096 Sep 19 00:00 apt
drwxr-xr-x 3 0 0 4096 Apr 19  2021 dpkg
drwxr-xr-x 3 0 0 4096 Apr  6  2019 gcc
drwxr-xr-x 3 0 0 4096 Mar 15  2022 locale
drwxr-xr-x 3 0 0 4096 Apr 23  2019 mime
-rw-r--r-- 1 0 0  261 Sep  3  2022 os-release
drwxr-xr-x 2 0 0 4096 Feb 25  2022 sasl2
drwxr-xr-x 2 0 0 4096 Sep 19 00:00 tmpfiles.d
drwxr-xr-x 1 0 0 4096 Oct  5 18:08 x86_64-linux-gnu
[3/3] STEP 1/13: FROM debian:bullseye-slim
[3/3] STEP 2/13: ENV DEBIAN_FRONTEND=noninteractive
[3/3] STEP 3/13: COPY --from=build-env /usr/local/ /usr/local/
[3/3] STEP 4/13: COPY --from=i386-libs /lib/ld-linux.so.2 /lib/ld-linux.so.2
error building at STEP "COPY --from=i386-libs /lib/ld-linux.so.2 /lib/ld-linux.so.2": checking on sources under "/home/server/.local/share/containers/storage/overlay/8f9420661481c01bf70d5b863f7bac5486e7306487ea2c1e9c6df3b89f04a9f4/merged": copier: stat: "/lib/ld-linux.so.2": no such file or directory
ERRO[0300] exit status 125

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" buildah version 1.23.1 (image-spec 1.0.1, runtime-spec 1.0.2-dev)

pcn commented 9 months ago

I'm not the maintainer, but it looks like it's failing trying to copy some probably-necessary 32-bit libraries from your local system and they're not there.