martastain

casparcg build debian

Mar 11th, 2023
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. FROM debian:bullseye as builder
  2.  
  3. RUN sed -i 's/main/main contrib non-free/' /etc/apt/sources.list
  4. RUN apt-get update && apt-get install -yq --no-install-recommends \
  5. build-essential \
  6. git \
  7. ninja-build \
  8. cmake \
  9. debhelper \
  10. libass-dev \
  11. libavcodec-dev \
  12. libavdevice-dev \
  13. libavfilter-dev \
  14. libavformat-dev \
  15. libavutil-dev \
  16. libboost-chrono-dev \
  17. libboost-coroutine-dev \
  18. libboost-date-time-dev \
  19. libboost-dev \
  20. libboost-filesystem-dev \
  21. libboost-locale-dev \
  22. libboost-log-dev \
  23. libboost-regex-dev \
  24. libboost-thread-dev \
  25. libbz2-dev \
  26. libcrypto++-dev \
  27. libfdk-aac-dev \
  28. libfreeimage-dev \
  29. libfreetype6-dev \
  30. libgconf2-dev \
  31. libglew-dev \
  32. libglfw3-dev \
  33. libgmp-dev \
  34. libjpeg-dev \
  35. liblzma-dev \
  36. libmp3lame-dev \
  37. libopenal-dev \
  38. libopus-dev \
  39. libpostproc-dev \
  40. librtmp-dev \
  41. libsfml-dev \
  42. libsndfile1-dev \
  43. libssl-dev \
  44. libswresample-dev \
  45. libswscale-dev \
  46. libtbb-dev \
  47. libtheora-dev \
  48. libvpx-dev \
  49. libwebp-dev \
  50. libx264-dev \
  51. libx265-dev \
  52. libxcb-shm0-dev \
  53. libxcursor-dev \
  54. libxi-dev \
  55. libxinerama-dev \
  56. libxrandr-dev \
  57. pkg-config \
  58. ca-certificates \
  59. libnss3 \
  60. libxcomposite1 \
  61. libatk1.0-0 \
  62. libatk-bridge2.0-0 \
  63. libatspi2.0-0 \
  64. txt2man \
  65. lsb-release \
  66. libxtst-dev
  67.  
  68. RUN update-ca-certificates
  69.  
  70. #
  71. # Build CEF
  72. #
  73.  
  74. FROM builder as cef
  75.  
  76. ARG PROC_COUNT=8
  77. ADD https://cef-builds.spotifycdn.com/cef_binary_3.3578.1870.gc974488_linux64_minimal.tar.bz2 /opt/cef.tar.bz2
  78. WORKDIR /opt
  79. COPY cef.patch /opt/cef.patch
  80. RUN tar -jxf cef.tar.bz2 && mv /opt/cef_binary_* /opt/cef
  81. RUN ls /opt/cef
  82. RUN cd /opt/cef; \
  83. patch -p 1 < /opt/cef.patch;
  84. RUN mkdir /opt/build
  85. WORKDIR /opt/build
  86. RUN cmake /opt/cef && make -j $PROC_COUNT
  87. RUN cp /opt/build/libcef_dll_wrapper/libcef_dll_wrapper.a /opt/cef/Release/
  88. RUN strip /opt/cef/Release/libcef.so
  89.  
  90. #
  91. # Build caspar
  92. #
  93.  
  94. FROM builder as casparcg
  95. ARG PROC_COUNT=8
  96. COPY --from=cef /opt/cef /opt/cef
  97. COPY server /server
  98. WORKDIR /server
  99. RUN mkdir /build
  100. WORKDIR /build
  101. RUN cmake -DCMAKE_BUILD_TYPE=Release /server/src
  102. RUN make -j ${PROC_COUNT}
  103.  
  104. #
  105. # Almost there...
  106. #
  107.  
  108. FROM builder
  109. COPY --from=casparcg /build/staging /staging
  110.  
Advertisement
Add Comment
Please, Sign In to add comment