Skip to content

Remove downloaded Oracle Instant Client Downloads for Linux from Docker image #853

@tfentonz

Description

@tfentonz

This issue is unique.

  • I have used the search tool and did not find an issue describing my idea.

Your idea.

The Dockerfile includes wget commands to download Oracle Instance Client Downloads for Linux:

  • Basic Package (ZIP)
  • SQL*Plus Package (ZIP)

The zip files are then extracted to /usr/share.

When running the built Docker image onlyoffice/documentserver-ee:9.3.1.2 the zip files remain in the root folder:

root@123456abcd78:/# ls -lh *.zip
-rw-r--r-- 1 root root 123M Jan 23  2025 basic.zip
-rw-r--r-- 1 root root 5.3M Jan 23  2025 sqlplus.zip

In Dockerfile:

    wget -O basic.zip ${OC_DOWNLOAD_URL}/instantclient-basic-linux.$(dpkg --print-architecture | sed 's/amd64/x64/')-${OC_FILE_SUFFIX}.zip && \
    wget -O sqlplus.zip ${OC_DOWNLOAD_URL}/instantclient-sqlplus-linux.$(dpkg --print-architecture | sed 's/amd64/x64/')-${OC_FILE_SUFFIX}.zip && \
    unzip -o basic.zip -d /usr/share && \
    unzip -o sqlplus.zip -d /usr/share && \

As these downloads are unzipped they can then be removed.

    unzip -o basic.zip -d /usr/share && \
    rm basic.zip && \
    unzip -o sqlplus.zip -d /usr/share && \
    rm sqlplus.zip && \

This will help reduce Docker image size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugsfixed-releaseIssues that fixed on next release, waiting to be released

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions