Skip to content

Commit

Permalink
No cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 25, 2023
1 parent 4840d8c commit e7f0db9
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ RUN rm -f /usr/local/bin/ffprobe && ln -sf /usr/local/bin/ffprobe5-hevc-over-rtm
ENV DEBIAN_FRONTEND=noninteractive

# Note that git is very important for codecov to discover the .codecov.yml
RUN apt update && \
apt install -y aptitude gdb gcc g++ make patch unzip python \
# For https://github.com/google/sanitizers
RUN apt-get update -y && \
apt-get install -y aptitude gdb gcc g++ make patch unzip python \
autoconf automake libtool pkg-config liblzma-dev curl net-tools \
tcl
tcl libasan5 && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# To use if in RUN, see https://github.com/moby/moby/issues/7281#issuecomment-389440503
# Note that only exists issue like "/bin/sh: 1: [[: not found" for Ubuntu20, no such problem in CentOS7.
Expand All @@ -47,9 +49,6 @@ SHELL ["/bin/bash", "-c"]
# see https://stackoverflow.com/a/46805870/17679565
RUN hash -r && which cmake && cmake --version

# For https://github.com/google/sanitizers
RUN apt install -y libasan5

# Install cherrypy for HTTP hooks.
#ADD CherryPy-3.2.4.tar.gz2 /tmp
#RUN cd /tmp/CherryPy-3.2.4 && python setup.py install
Expand All @@ -71,14 +70,12 @@ ADD googletest-release-1.11.0.tar.gz /usr/local
RUN ln -sf /usr/local/googletest-release-1.11.0/googletest /usr/local/gtest

# Install 32bits adapter for crossbuild.
RUN if [[ $TARGETARCH != 'arm' && $TARGETARCH != 'arm64' ]]; then \
apt-get -y install lib32z1-dev; \
fi

# For cross-build: https://github.com/ossrs/srs/wiki/v4_EN_SrsLinuxArm#ubuntu-cross-build-srs
RUN if [[ $TARGETARCH != 'arm' && $TARGETARCH != 'arm64' ]]; then \
apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu; \
apt-get update -y && \
apt-get install -y lib32z1-dev gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu && \
apt-get clean && rm -rf /var/lib/apt/lists/*; \
fi

# Update the mirror from aliyun, @see https://segmentfault.com/a/1190000022619136
Expand Down

0 comments on commit e7f0db9

Please sign in to comment.