修复某些网络不好情况,基础镜像失败 (#1225)

Co-authored-by: monktan <monktan@tencent.com>
This commit is contained in:
夏楚 2021-11-17 15:51:10 +08:00 committed by GitHub
parent 950d957c86
commit f5bdd60d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,13 @@ ARG MODEL
EXPOSE 9000/tcp EXPOSE 9000/tcp
EXPOSE 1935/tcp EXPOSE 1935/tcp
EXPOSE 554/tcp EXPOSE 554/tcp
EXPOSE 322/tcp
EXPOSE 80/tcp EXPOSE 80/tcp
EXPOSE 443/tcp EXPOSE 443/tcp
EXPOSE 10000/udp EXPOSE 10000/udp
EXPOSE 10000/tcp EXPOSE 10000/tcp
EXPOSE 8000/udp EXPOSE 8000/udp
RUN apt-get update && \ RUN apt-get update && apt-get dist-upgrade && \
DEBIAN_FRONTEND="noninteractive" \ DEBIAN_FRONTEND="noninteractive" \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
build-essential \ build-essential \
@ -49,7 +48,7 @@ RUN cmake -DCMAKE_BUILD_TYPE=${MODEL} -DENABLE_WEBRTC=true -DENABLE_TESTS=false
FROM ubuntu:18.04 FROM ubuntu:18.04
ARG MODEL ARG MODEL
RUN apt-get update && \ RUN apt-get update && apt-get dist-upgrade && \
DEBIAN_FRONTEND="noninteractive" \ DEBIAN_FRONTEND="noninteractive" \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
vim \ vim \