Skip to content

Commit fff012d

Browse files
committed
nginx版本更新至1.28.0,EVN改为ENV key=value
1 parent 9098158 commit fff012d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG NGINX_VERSION=1.26.3
1+
ARG NGINX_VERSION=1.28.0
22
ARG NGINX_HTTP_FLV_MODULE=1.2.12
33
ARG HTTP_PORT=80
44
ARG HTTPS_PORT=443
@@ -48,20 +48,20 @@ ARG HTTPS_PORT
4848
ARG RTMP_PORT
4949
ARG HTTP_FLV_MODULE
5050

51-
ENV HTTP_PORT ${HTTP_PORT}
52-
ENV HTTPS_PORT ${HTTPS_PORT}
53-
ENV RTMP_PORT ${RTMP_PORT}
54-
ENV HTTP_FLV_MODULE ${HTTP_FLV_MODULE}
51+
ENV HTTP_PORT=${HTTP_PORT}
52+
ENV HTTPS_PORT=${HTTPS_PORT}
53+
ENV RTMP_PORT=${RTMP_PORT}
54+
ENV HTTP_FLV_MODULE=${HTTP_FLV_MODULE}
5555

5656
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories\
5757
&& apk update \
58-
&& apk add --no-cache pcre-dev zlib-dev openssl openssl-dev gettext ffmpeg
58+
&& apk add --no-cache pcre-dev zlib-dev openssl openssl-dev gettext
5959

6060
COPY --from=build-nginx /usr/local/nginx /usr/local/nginx
6161
COPY --from=build-nginx /etc/nginx /etc/nginx
6262

6363
# Add NGINX path, config and static files.
64-
ENV PATH "${PATH}:/usr/local/nginx/sbin"
64+
ENV PATH="${PATH}:/usr/local/nginx/sbin"
6565
RUN mkdir -p /opt/data && mkdir /www && mkdir -p /usr/local/nginx/rtmp
6666
COPY nginx.conf /etc/nginx/nginx.conf
6767
COPY stat.xsl /usr/local/nginx/rtmp/stat.xsl

0 commit comments

Comments
 (0)