-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (54 loc) · 1.6 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# this file is generated via docker-builder/generate.pl
#
# do not edit it directly
#
FROM perl:5.26-buster AS base
WORKDIR /usr/src/app
RUN set -ex \
&& cpanm \
Test::CPAN::Changes \
Test::Deep \
Test::Exception \
Test::Output \
Test::Pod \
Test::Pod::Coverage \
Test::Warn \
&& rm -r /root/.cpanm
ARG NOW=not-set
LABEL org.opencontainers.image.authors="Tekki <tekki@tekki.ch>"
LABEL org.opencontainers.image.created=$NOW
LABEL org.opencontainers.image.description="Perl test images."
LABEL org.opencontainers.image.documentation=https://github.com/Tekki/docker-perl-test/blob/master/README.md
LABEL org.opencontainers.image.licenses=Artistic-2.0
LABEL org.opencontainers.image.source=https://github.com/Tekki/docker-perl-test/blob/master/p26/Dockerfile
LABEL org.opencontainers.image.title=Perl-Test
LABEL org.opencontainers.image.url=https://github.com/Tekki/docker-perl-test
LABEL org.opencontainers.image.version=26-test
ENV DEBIAN_PACKAGES=
ENV INSTALLDEPS=
COPY docker-entrypoint.sh /usr/local/bin
RUN chmod 0755 /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["prove", "-Ilib", "-r"]
FROM base AS db
RUN set -ex \
&& cpanm \
DBI \
DBD::mysql \
DBD::MariaDB \
DBD::Pg \
DBD::SQLite \
SQL::Abstract \
&& rm -r /root/.cpanm
ARG NOW=not-set
LABEL org.opencontainers.image.created=$NOW
LABEL org.opencontainers.image.version=26-dbtest
FROM db AS mojo
RUN set -ex \
&& cpanm \
Mojolicious \
&& rm -r /root/.cpanm
ARG NOW=not-set
LABEL org.opencontainers.image.created=$NOW
LABEL org.opencontainers.image.version=26-mojotest