-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.mojo-703-perl-516
35 lines (26 loc) · 1.29 KB
/
Dockerfile.mojo-703-perl-516
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
FROM openshift/base-centos7
MAINTAINER istreeter
EXPOSE 8080
ENV PERL_VERSION=5.16 \
PATH=$PATH:/opt/rh/perl516/root/usr/local/bin \
PERL5LIB=/opt/app-root/src/lib:/opt/app-root/usr/lib/perl5:/opt/app-root/lib/perl5
LABEL io.k8s.description="Platform for building and running Mojolicious applications with Perl 5.16" \
io.k8s.display-name="Hypnotoad 7.03" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,perl,perl516,mojo,mojolicious,hypnotoad"
RUN yum install -y centos-release-scl && \
INSTALL_PKGS="perl516 perl516-perl-core perl516-perl-CPANPLUS openssl" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum erase -y perl && \
yum clean all && \
scl enable perl516 -- cpanp 's conf prereqs 1; s save system' && \
scl enable perl516 -- cpanp 's conf allow_build_interactivity 0; s save system' && \
curl -sSkL https://raw.githubusercontent.com/miyagawa/cpanminus/1.7102/cpanm |scl enable perl516 -- perl - App::cpanminus && \
scl enable perl516 -- cpanm -l /opt/app-root [email protected] Net::SSLeay IO::Socket::SSL && \
rm -rf /opt/app-root/src/.cpanm
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
COPY ./contrib-perl516/ /opt/app-root
RUN chown -R 1001:1001 /opt/app-root
USER 1001
CMD $STI_SCRIPTS_PATH/usage