forked from czerasz/docker-gource
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (31 loc) · 1020 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
34
35
36
37
38
39
40
FROM ubuntu:14.04
# Set the reset cache variable
ENV REFRESHED_AT 2015-07-30
# Update the repositories list and install software to add a PPA
RUN apt-get update && \
apt-get install -y software-properties-common && \
# Add the PPA with ffmpeg
apt-add-repository -y ppa:mc3man/trusty-media && \
apt-get update && \
# Install required software
apt-get install -y git \
mercurial \
xvfb \
xfonts-base \
xfonts-75dpi \
xfonts-100dpi \
xfonts-cyrillic \
gource \
screen \
ffmpeg
# Add the init script
ADD ./init.sh /tmp/init.sh
# Set the default title
ENV TITLE "Example title"
# Mount volumes
VOLUME ["/repoRoot", "/avatars", "/results"]
# Set the working directory to where the git repository is stored
WORKDIR /repoRoot
# Run the init script by default
CMD [""]
ENTRYPOINT ["/tmp/init.sh"]