-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (41 loc) · 1020 Bytes
/
Dockerfile
File metadata and controls
48 lines (41 loc) · 1020 Bytes
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
FROM utensils/opengl:stable
# Install all needed runtime dependencies.
RUN \
set -xe; \
apk --update add --no-cache --virtual .runtime-deps \
bash \
ffmpeg \
git \
gource \
imagemagick \
jq;
# Copy scripts into image
COPY ./entrypoint.sh ./gource.sh /usr/local/bin/
# Add executable right to scripts
RUN \
chmod +x /usr/local/bin/entrypoint.sh; \
chmod +x /usr/local/bin/gource.sh;
# Create working directories
RUN \
mkdir /gource; \
mkdir /gource/logs; \
mkdir /gource/avatars; \
mkdir /gource/git_repo; \
mkdir /gource/git_repos; \
mkdir /gource/output;
# Set working directory with full access
WORKDIR /gource
RUN chmod -R 777 /gource
# Set environment variables
ENV \
DISPLAY=":99" \
GLOBAL_FILTERS="" \
GOURCE_FILTERS="" \
GOURCE_USER_IMAGE_DIR="/gource/avatars" \
H264_CRF="23" \
H264_LEVEL="5.1" \
H264_PRESET="medium" \
INVERT_COLORS="false" \
XVFB_WHD="3840x2160x24"
# Set our entrypoint.
ENTRYPOINT ["bash", "/usr/local/bin/entrypoint.sh"]