-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
70 lines (58 loc) · 1.98 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM ampervue/ffmpeg
# https://github.com/ampervue/docker-ffmpeg-moviepy
# https://hub.docker.com/r/dkarchmervue/moviepy/
MAINTAINER David Karchmer <[email protected]>
#####################################################################
#
# A Docker image with everything needed to run Moviepy scripts
#
# Image based on https://github.com/ampervue/docker-ffmpeg
#
# with
# - Latest Python 3.4
# - Latest FFMPEG (built)
# - ImageMagick, Numpy, Scipy and other requirements for moviepy
#
# For more on Moviepy, see http://zulko.github.io/moviepy/
#
# plus a bunch of build/web essentials
#
#####################################################################
#ENV NUM_CORES 4
#ENV MOVIEPY_VERSION 0.2.2.11 - Building from source due to issue 237
ENV NUMPY_VERSION 1.10.4
# Pillow 3 is not compatible with MoviePy
# https://github.com/Zulko/moviepy/issues/241
ENV PILLOW_VERSION 2.8.1
ENV SCIPY_VERSION 0.17.0
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install moviepy and related packages
# ====================================
RUN pip install -U numpy==$NUMPY_VERSION
RUN pip install -U Pillow==$PILLOW_VERSION
RUN pip install -U scipy==$SCIPY_VERSION
#RUN pip install -U moviepy==$MOVIEPY_VERSION
ENV FFMPEG_BINARY ffmpeg
ENV IMAGEMAGICK_BINARY convert
# Manually build version that allows control of FFMPEG exe
# See https://github.com/Zulko/moviepy/issues/237
# Use PIP when issue fixed. For now, change the defaults
# manually
RUN pip install tqdm
WORKDIR /usr/local/src
RUN git clone -q https://github.com/Zulko/moviepy.git
WORKDIR /usr/local/src/moviepy
#ADD config_defaults.py moviepy/config_defaults.py
RUN sudo python setup.py install
# Remove all tmpfile and cleanup
# =================================
WORKDIR /usr/local/
RUN rm -rf /usr/local/src
# =================================
# Setup a working directory to allow for
# docker run --rm -ti -v ${PWD}:/code ...
# =======================================
WORKDIR /work