Skip to content

ADD $FIREBIRD_RELEASE_URL /tmp/firebird-bundle.tar.gz increases the volume of containers. #20

Closed
@andreyrogojin

Description

@andreyrogojin

I think it is possible to optimize the assembly of docker containers. Currently, the firebird installer is loaded by the ADD command into each container separately, while creating a layer in them that is not needed when using, but increases the volume of containers.
Maybe it would be better like this:

$ mkdir <path for all>/tmp
$ wget -O tmp/firebird-bundle.tar.gz https://github.com/FirebirdSQL/firebird/releases/download/v5.0.1/Firebird-5.0.1.1469-0-linux-x64.tar.gz

And exclude ADD in the dockerfiles, using instead:
RUN --mount=type=bind,from=<path for all>/tmp,dst=/tmp,rw set -eux; cd /tmp; tar --extract ...
You won't need to download the installer for each tag and the size of the containers will decrease.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions