Skip to content

Commit

Permalink
Merge pull request DSpace#9521 from jabrah/fix/docker-cli-missing-unzip
Browse files Browse the repository at this point in the history
Install unzip util in built dspace-cli image
  • Loading branch information
tdonohue authored May 1, 2024
2 parents 219e5b6 + 3eae430 commit e903211
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ WORKDIR /dspace-src
ENV ANT_VERSION 1.10.13
ENV ANT_HOME /tmp/ant-$ANT_VERSION
ENV PATH $ANT_HOME/bin:$PATH
# Need wget to install ant, and unzip for managing AIPs
# Need wget to install ant
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget unzip \
&& apt-get install -y --no-install-recommends wget \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*
# Download and install 'ant'
Expand All @@ -53,3 +53,8 @@ ENV DSPACE_INSTALL=/dspace
COPY --from=ant_build /dspace $DSPACE_INSTALL
# Give java extra memory (1GB)
ENV JAVA_OPTS=-Xmx1000m
# Install unzip for AIPs
RUN apt-get update \
&& apt-get install -y --no-install-recommends unzip \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

0 comments on commit e903211

Please sign in to comment.