diff --git a/.github/workflows/publish-to-docker.yml b/.github/workflows/publish-to-docker.yml index 8f9899a..92f0ed9 100644 --- a/.github/workflows/publish-to-docker.yml +++ b/.github/workflows/publish-to-docker.yml @@ -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" diff --git a/Dockerfile b/Dockerfile index 6d27da8..6ca38a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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