Skip to content

Commit

Permalink
Merge pull request #66 from rspier/slim
Browse files Browse the repository at this point in the history
Shrink the images.
  • Loading branch information
oalders authored May 15, 2024
2 parents e05fc97 + c4fdc92 commit 6a22a59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,5 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
dockerfile: Dockerfile
buildargs: BASE=${{ matrix.perl-version }}-bookworm,CPANOUTDATED=1
tags: "${{ matrix.perl-version }}-bookworm"
buildargs: BASE=${{ matrix.perl-version }}-slim-bookworm,CPANOUTDATED=1
tags: "${{ matrix.perl-version }}-slim-bookworm"
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ RUN perl -V

RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get -y --no-install-recommends install aspell aspell-en
apt-get -y --no-install-recommends install \
aspell aspell-en \
build-essential \
git

RUN cpanm --self-upgrade || \
( echo "# Installing cpanminus:"; curl -sL https://cpanmin.us/ | perl - App::cpanminus )

RUN cpanm -nq App::cpm Carton::Snapshot
RUN cpanm -nq App::cpm Carton::Snapshot && rm -rf /root/.cpanm

RUN cpm install -g --show-build-log-on-failure --cpanfile /tmp/cpanfile
RUN cpm install -g --show-build-log-on-failure --cpanfile /tmp/cpanfile && rm -rf /root/.perl-cpm

RUN if [ "x${CPANOUTDATED}" = "x1" ] ; then cpan-outdated --exclude-core -p | xargs -n1 cpanm ; else cpan-outdated --exclude-core -p; fi

Expand Down

0 comments on commit 6a22a59

Please sign in to comment.