-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (50 loc) · 1.4 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
# Use the AWS Elastic Beanstalk Python 3.4 image
FROM amazon/aws-eb-python:3.4.2-onbuild-3.5.1
MAINTAINER David Karchmer <[email protected]>
#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
ENV YASM_VERSION 1.3.0
RUN echo deb http://archive.ubuntu.com/ubuntu precise universe multiverse >> /etc/apt/sources.list; \
apt-get update -qq && apt-get install -y --force-yes \
autoconf \
automake \
build-essential \
cmake \
curl \
git \
libass-dev \
libgpac-dev \
libmp3lame-dev \
libfaac-dev \
libfontconfig-dev \
libfreetype6-dev \
libfribidi-dev \
libjpeg-dev \
libpng-dev \
libpq-dev \
libtheora-dev \
libtiff5-dev \
libtool \
libvdpau-dev \
libvorbis-dev \
mercurial \
pkg-config \
postgresql \
texi2html \
unzip \
wget \
zlib1g-dev; \
apt-get clean
# Step 1: Build FFMPEG and related plugins
# ----------------------------------------
COPY build.sh /tmp/build.sh
RUN bash /tmp/build.sh
# Exposes port 8080
EXPOSE 8080
ENV PYTHONPATH $PYTHONPATH:/var/app
# ONBUILD has no inheritance so we need to add them here again for the child builds to
# add the actual python (e.g. Django) project
ONBUILD ADD . /var/app
ONBUILD RUN if [ -f /var/app/requirements.txt ]; then /var/app/bin/pip install -r /var/app/requirements.txt; fi