forked from kerberos-io/kerberos-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (34 loc) · 1.78 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
FROM arm32v7/debian
MAINTAINER "Cédric Verstraeten" <[email protected]>
#################################
# Surpress Upstart errors/warning
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
#############################################
# Let the container know that there is no tty
ENV DEBIAN_FRONTEND noninteractive
#########################################
# Update base image
# Add sources for latest nginx and cmake
# Install software requirements
RUN apt-get update && \
apt-get install -y software-properties-common
RUN apt-get -y install git supervisor curl subversion libcurl4-gnutls-dev cmake dh-autoreconf libav-tools autotools-dev autoconf automake gcc build-essential libtool make nasm zlib1g-dev tar libx264.
RUN apt-get -y --force-yes install nginx php7.0-cli php7.0-gd php7.0-mcrypt php7.0-curl php7.0-mbstring php7.0-dom php7.0-zip php7.0-fpm pwgen
########################################
# fix ownership of sock file for php-fpm
RUN sed -i -e "s/;listen.mode = 0660/listen.mode = 0750/g" /etc/php/7.0/fpm/pool.d/www.conf && \
find /etc/php/7.0/cli/conf.d/ -name "*.ini" -exec sed -i -re 's/^(\s*)#(.*)/\1;\2/g' {} \;
########################################
# Force both nginx and PHP-FPM to run in the foreground
# This is a requirement for supervisor
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php/7.0/fpm/php-fpm.conf
############################
# Clone and build machinery
RUN apt-get install libomxil-bellagio-dev -y
RUN git clone https://github.com/FFmpeg/FFmpeg && \
cd FFmpeg && git checkout remotes/origin/release/3.1 && \
./configure --target-os=linux --enable-nonfree --enable-libx264 --enable-gpl --enable-omx && make && \
make install && \
cd .. && rm -rf FFmpeg