AlmaLinux / docker-images

Home for AlmaLinux Docker image RootFS files and production version of sources
MIT License
100 stars 27 forks source link

`/bin/sh: RUN: command not found` #98

Closed adelton closed 12 months ago

adelton commented 1 year ago

When running the command shown in the top level README.md, just with podman

$ podman build -t almalinux-8 -f dockerfiles/al8/Dockerfile.default .

I get

  yum-4.7.0-16.el8_8.alma.noarch                                                
  zlib-1.2.11-21.el8_7.x86_64                                                   

Complete!
28 files removed
/bin/sh: RUN: command not found
--> 40d97a6662fe
[2/3] STEP 1/3: FROM scratch AS stage2

It seems to be caused by the fact that

[1/3] STEP 2/2: RUN mkdir /mnt/sys-root;     dnf install -y     --installroot /mnt/sys-root [...] dnf --installroot /mnt/sys-root clean all; RUN rm -rf /mnt/sys-root/var/log/dnf* /mnt/sys-root/var/log/yum.* [...]

The extra newline on the preceding line makes that RUN part of that command list.