-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
33 lines (23 loc) · 1007 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG BASE
ARG CPANOUTDATED
FROM perl:${BASE}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
COPY cpanfile /tmp/
RUN perl -V
RUN apt-get update && \
apt-get dist-upgrade -y && \
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 && rm -rf /root/.cpanm
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
WORKDIR /tmp/
RUN git clone https://github.com/perl-actions/ci-perl-tester-helpers.git --depth 1 && \
cp ci-perl-tester-helpers/bin/* /usr/local/bin/ && \
rm -rf ci-perl-tester-helpers && \
git config --system --add safe.directory '*'
CMD ["/bin/bash"]