forked from TwelveNights/docker-gource
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (27 loc) · 885 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
FROM ubuntu:16.04
# Set the reset cache variable
ENV REFRESHED_AT 2018-03-29
# Update the repositories list and install software to add a PPA
RUN apt-get update && \
apt-get install -y software-properties-common && \
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"]