Skip to content

Commit 6a22a59

Browse files
authored
Merge pull request #66 from rspier/slim
Shrink the images.
2 parents e05fc97 + c4fdc92 commit 6a22a59

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/publish-to-docker.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,5 @@ jobs:
9898
username: ${{ secrets.DOCKER_USERNAME }}
9999
password: ${{ secrets.DOCKER_GITHUB_TOKEN }}
100100
dockerfile: Dockerfile
101-
buildargs: BASE=${{ matrix.perl-version }}-bookworm,CPANOUTDATED=1
102-
tags: "${{ matrix.perl-version }}-bookworm"
101+
buildargs: BASE=${{ matrix.perl-version }}-slim-bookworm,CPANOUTDATED=1
102+
tags: "${{ matrix.perl-version }}-slim-bookworm"

Dockerfile

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ RUN perl -V
1010

1111
RUN apt-get update && \
1212
apt-get dist-upgrade -y && \
13-
apt-get -y --no-install-recommends install aspell aspell-en
13+
apt-get -y --no-install-recommends install \
14+
aspell aspell-en \
15+
build-essential \
16+
git
1417

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

18-
RUN cpanm -nq App::cpm Carton::Snapshot
21+
RUN cpanm -nq App::cpm Carton::Snapshot && rm -rf /root/.cpanm
1922

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

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

0 commit comments

Comments
 (0)