-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 924 Bytes
/
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
FROM alpine:3.11
LABEL Maintainer Markku Virtanen
ENV NGINX_VERSION nginx-1.18.0
COPY mp4module.patch /tmp/mp4module.patch
RUN apk --update add openssl-dev git pcre-dev zlib-dev tini wget build-base && \
mkdir -p /tmp/src && \
cd /tmp/src && \
wget http://nginx.org/download/${NGINX_VERSION}.tar.gz && \
tar -zxvf ${NGINX_VERSION}.tar.gz && \
cd /tmp/src/${NGINX_VERSION} && \
patch /tmp/src/${NGINX_VERSION}/src/http/modules/ngx_http_mp4_module.c /tmp/mp4module.patch && \
./configure \
--with-http_ssl_module \
--with-http_mp4_module \
--with-http_gzip_static_module \
--prefix=/etc/nginx \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--sbin-path=/usr/local/sbin/nginx && \
make && \
make install && \
apk del build-base && \
rm -rf /tmp/src && \
rm -rf /var/cache/apk/*