-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Dockerfile #522
add Dockerfile #522
Changes from 10 commits
b035660
1426eb2
26ab7dc
24f3f47
4f9709d
2e9f460
2c70ab2
29089b2
f54556c
17d882d
1310c83
1c16e6d
cbb0571
9317774
4a90a9e
5cbfa01
6c22be9
50bf162
3519ad2
5e24305
b0f2ce6
463c9d8
b1ea13c
bb441ff
78caa6d
4775a99
862987c
ac73b78
ba8b1a1
1d2d3f0
c9dcc17
76f09cd
65d5463
b085e16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM python:3 | ||
|
||
# Install numpy using system package manager | ||
RUN apt-get -y update && apt-get -y install libav-tools imagemagick libopencv-dev python-opencv | ||
|
||
# Install some special fonts we use in testing, etc.. | ||
RUN apt-get -y install fonts-liberation | ||
|
||
RUN apt-get install -y locales && \ | ||
locale-gen C.UTF-8 && \ | ||
/usr/sbin/update-locale LANG=C.UTF-8 | ||
|
||
ENV LC_ALL C.UTF-8 | ||
|
||
# do we need all of these, maybe remove some of them? | ||
RUN pip install imageio numpy scipy matplotlib pandas sympy nose decorator tqdm pillow pytest | ||
|
||
# install scikit-image after the other deps, it doesn't cause errors this way. | ||
RUN pip install scikit-image sklearn | ||
|
||
# install from github since there are bugs in latest versions. | ||
RUN git clone https://github.com/Zulko/moviepy.git /var/src/moviepy | ||
RUN cd /var/src/moviepy/ && python setup.py install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the Dockerfile is going to be included with the source, we won't need to pull down from git, we can just include it like this.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this comment might get lost. Commenting again in the thread, incase it does. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-commenting since it is no longer showing up. Since the Dockerfile is going to be included with the source, we won't need to pull down from git, we can just include it like this.
|
||
|
||
# install ffmpeg from imageio. | ||
RUN python -c "import imageio; imageio.plugins.ffmpeg.download()" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will install ffmpeg into a weird location not in the path, should we add a symlink or something to put in in a location that is more common? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure.. I'll work on adding that.. Thanks for pointing this out. |
||
|
||
# modify ImageMagick policy file so that Textclips work correctly. | ||
RUN cat /etc/ImageMagick-6/policy.xml | sed 's/none/read,write/g'> /etc/ImageMagick-6/policy.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this comment now.