Skip to content

Commit 04ae94f

Browse files
authored
Merge pull request #46 from dromer/master
update alpine, ffmpeg, compile flags, and disable librtmp
2 parents 73f7698 + dab71f7 commit 04ae94f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ARG NGINX_VERSION=1.16.1
22
ARG NGINX_RTMP_VERSION=1.2.1
3-
ARG FFMPEG_VERSION=4.2.1
3+
ARG FFMPEG_VERSION=4.2.2
44

55

66
##############################
77
# Build the NGINX-build image.
8-
FROM alpine:3.8 as build-nginx
8+
FROM alpine:3.11 as build-nginx
99
ARG NGINX_VERSION
1010
ARG NGINX_RTMP_VERSION
1111

@@ -48,12 +48,13 @@ RUN cd /tmp/nginx-${NGINX_VERSION} && \
4848
--with-threads \
4949
--with-file-aio \
5050
--with-http_ssl_module \
51-
--with-debug && \
51+
--with-debug \
52+
--with-cc-opt="-Wimplicit-fallthrough=0" && \
5253
cd /tmp/nginx-${NGINX_VERSION} && make && make install
5354

5455
###############################
5556
# Build the FFmpeg-build image.
56-
FROM alpine:3.8 as build-ffmpeg
57+
FROM alpine:3.11 as build-ffmpeg
5758
ARG FFMPEG_VERSION
5859
ARG PREFIX=/usr/local
5960
ARG MAKEFLAGS="-j4"
@@ -71,6 +72,7 @@ RUN apk add --update \
7172
libvorbis-dev \
7273
libwebp-dev \
7374
libtheora-dev \
75+
openssl-dev \
7476
opus-dev \
7577
pkgconf \
7678
pkgconfig \
@@ -106,7 +108,6 @@ RUN cd /tmp/ffmpeg-${FFMPEG_VERSION} && \
106108
--enable-libfdk-aac \
107109
--enable-libass \
108110
--enable-libwebp \
109-
--enable-librtmp \
110111
--enable-postproc \
111112
--enable-avresample \
112113
--enable-libfreetype \
@@ -122,7 +123,7 @@ RUN rm -rf /var/cache/* /tmp/*
122123

123124
##########################
124125
# Build the release image.
125-
FROM alpine:3.8
126+
FROM alpine:3.11
126127
LABEL MAINTAINER Alfred Gutierrez <alf.g.jr@gmail.com>
127128

128129
RUN apk add --update \

0 commit comments

Comments
 (0)