-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
43 lines (30 loc) · 1.3 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
FROM fedora:21
MAINTAINER Michal Jurosz <mj@mj41.cz>
RUN yum makecache fast
# Install man pages
RUN sed -i '/nodocs/d' /etc/yum.conf
RUN yum update -y
RUN yum install -y man tar gzip unzip git make curl tree diffutils gcc \
perl perl-Test-Simple perl-ExtUtils-MakeMaker perl-App-cpanminus \
perl-autodie perl-File-Slurp perl-Text-Markdown perl-HTML-Parser perl-File-ShareDir
RUN cpanm HTML::FromANSI
RUN useradd --uid 1000 -U linus
USER linus
ENV HOME /home/linus
RUN mkdir -p /home/linus/prbuilder/third-part/
WORKDIR /home/linus/prbuilder/third-part/
RUN git clone https://github.com/hakimel/reveal.js.git
RUN git clone https://github.com/mj41/Presentation-Builder.git Presentation-Builder
ENV PERL5LIB /home/linus/prbuilder/third-part/Presentation-Builder/lib:$PER5LIB
# Update base image
WORKDIR /home/linus/prbuilder/third-part/reveal.js/
RUN echo "Force Docker image rebuild of reveal.js to particular revision." \
&& git fetch && git reset --hard 3.1.0 \
&& git log -n1 --oneline HEAD
WORKDIR /home/linus/prbuilder/third-part/Presentation-Builder/
RUN echo "Force Docker image rebuild of Presentation-Builder to particular revision." \
&& git fetch && git reset --hard 6deb8b4 \
&& git log -n1 --oneline HEAD
ADD docker-bin/ /home/linus/prbuilder/docker-bin/
WORKDIR /home/linus/prbuilder/
CMD /bin/sh