Skip to content

Buliding docker image fails #220

@rudism

Description

@rudism

Describe the bug
I am on Linux with Docker v28.5.2, trying to run the docker/build.sh script. The build fails at the COPY ./* ./ step of the Dockerfile. I tried both on master and on the 3.18.4 tag.

To Reproduce

git clone --depth 1 --branch 3.18.4 [email protected]:Gemba/skyscraper.git
cd skyscraper/docker
./build.sh

Expected behavior
The docker image should successfully build.

Terminal output

#10 [ 6/10] RUN rm -rf /var/lib/apt/lists/*
#10 DONE 0.4s

#11 [ 7/10] RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
#11 0.551 info: Adding user `docker' to group `sudo' ...
#11 DONE 0.6s

#12 [ 8/10] COPY ./* ./
#12 ERROR: cannot copy to non-directory: /var/lib/docker/overlay2/mwv38nblui9n5ipogv1s7d1ny/merged/config
------
 > [ 8/10] COPY ./* ./:
------
Dockerfile:26
--------------------
  24 |     
  25 |     # Building skyscraper
  26 | >>> COPY ./* ./
  27 |     RUN rm -f ./VERSION.ini
  28 |     RUN chmod +x update_skyscraper.sh  && ./update_skyscraper.sh
--------------------
ERROR: failed to build: failed to solve: cannot copy to non-directory: /var/lib/docker/overlay2/mwv38nblui9n5ipogv1s7d1ny/merged/config

Technical information

rudism ~ $ ufetch

      _______      [email protected]
      \_____ `-    OS:        Void Linux
   /\   ___ `- \   KERNEL:    Linux 6.12.68_1
  | |  /   \  | |  UPTIME:    1 week, 2 days, 1 hour, 43 minutes
  | |  \___/  | |  PACKAGES:  1272
   \ `-_____  \/   SHELL:     yash
    `-______\      DE:        sway

rudism ~ $ docker --version
Docker version 28.5.2, build tag v28.5.2

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions