Dockerfile.builds 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ########################################################
  2. FROM ossrs/srs:dev-cache AS centos7-baseline
  3. COPY . /srs
  4. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off && make
  5. FROM ossrs/srs:dev-cache AS centos7-no-webrtc
  6. COPY . /srs
  7. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off --rtc=off && make
  8. FROM ossrs/srs:dev-cache AS centos7-no-asm
  9. COPY . /srs
  10. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off --nasm=off --srtp-nasm=off && make
  11. FROM ossrs/srs:dev-cache AS centos7-all
  12. COPY . /srs
  13. RUN cd /srs/trunk && ./configure --srt=on --gb28181=on --apm=on --h265=on && make
  14. FROM ossrs/srs:dev-cache AS centos7-ansi-no-ffmpeg
  15. COPY . /srs
  16. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off --cxx11=off --cxx14=off --ffmpeg-fit=off && make
  17. ########################################################
  18. FROM ossrs/srs:ubuntu16-cache AS ubuntu16-baseline
  19. COPY . /srs
  20. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off && make
  21. FROM ossrs/srs:ubuntu16-cache AS ubuntu16-all
  22. COPY . /srs
  23. RUN cd /srs/trunk && ./configure --srt=on --gb28181=on --h265=on && make
  24. ########################################################
  25. FROM ossrs/srs:ubuntu18-cache AS ubuntu18-baseline
  26. COPY . /srs
  27. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off && make
  28. FROM ossrs/srs:ubuntu18-cache AS ubuntu18-all
  29. COPY . /srs
  30. RUN cd /srs/trunk && ./configure --srt=on --gb28181=on --h265=on && make
  31. ########################################################
  32. FROM ossrs/srs:ubuntu20-cache AS ubuntu20-baseline
  33. COPY . /srs
  34. RUN cd /srs/trunk && ./configure --srt=off --gb28181=off && make
  35. FROM ossrs/srs:ubuntu20-cache AS ubuntu20-all
  36. COPY . /srs
  37. RUN cd /srs/trunk && ./configure --srt=on --gb28181=on --apm=on --h265=on && make
  38. ########################################################
  39. FROM ossrs/srs:ubuntu16-cache-cross-arm AS ubuntu16-cache-cross-armv7
  40. COPY . /srs
  41. RUN cd /srs/trunk && ./configure --cross-build --cross-prefix=arm-linux-gnueabihf- && make
  42. FROM ossrs/srs:ubuntu16-cache-cross-aarch64 AS ubuntu16-cache-cross-aarch64
  43. COPY . /srs
  44. RUN cd /srs/trunk && ./configure --cross-build --cross-prefix=aarch64-linux-gnu- && make
  45. ########################################################
  46. FROM ossrs/srs:ubuntu20-cache-cross-arm AS ubuntu20-cache-cross-armv7
  47. COPY . /srs
  48. RUN cd /srs/trunk && ./configure --cross-build --cross-prefix=arm-linux-gnueabihf- && make
  49. FROM ossrs/srs:ubuntu20-cache-cross-aarch64 AS ubuntu20-cache-cross-aarch64
  50. COPY . /srs
  51. RUN cd /srs/trunk && ./configure --cross-build --cross-prefix=aarch64-linux-gnu- && make