Skip to content

latest and 0.14.6 fail when using COPY #140

@meezaan

Description

@meezaan

Describe the bug

Both latest and 0.14.6 are failing when using copy. For example:

Dockerfile:4
--------------------
   2 |     
   3 |     # Copy files
   4 | >>> COPY . /var/www/
   5 |     # COPY etc/apache2/mods-enabled/mpm_prefork.conf /etc/apache2/mods-enabled/mpm_prefork.conf
   6 |     COPY etc/unit/.unit.conf.json /docker-entrypoint.d/.unit.conf.json
--------------------
error: failed to solve: failed to compute cache key: failed to copy: httpReadSeeker.ReadAt: failed to open at offset 1048576: gzip: invalid header
FATA[0006] failed to build: build: exit status 1        
FATA[0006] failed to run task: exit status 1            

Things work fine if I use an older image like 0.14.4 or 0.14.5.

Reproduction steps

  1. Create a Dockerfile with that copies files into the image.
  2. Try and build using this resource.
  3. See the above error.
    ...

Expected behavior

That builds do not fail with the invalid gzip header.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions