Skip to content

Commit

Permalink
av: move ffmpeg to common build
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored May 31, 2024
1 parent 946e27f commit fb3c0a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions packages/av/Dockerfile.stage1
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ ENV FFMPEG_BUILD_CMD_PREFIX="python3.8 scripts/build-ffmpeg.py /tmp/vendor --sta


FROM ver-${VERSION}
ARG PYTHON_VERSION
ARG VERSION
ARG OUTPUT_DIR

ENV CC=/opt/rh/devtoolset-10/root/usr/bin/gcc
ENV FC=/opt/rh/devtoolset-10/root/usr/bin/gfortran5
Expand Down
3 changes: 0 additions & 3 deletions packages/av/Dockerfile.stage2
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM base
ARG PYTHON_VERSION
ARG VERSION
ARG OUTPUT_DIR

WORKDIR pyav-ffmpeg
RUN ${FFMPEG_BUILD_CMD_PREFIX} 2
Expand Down
3 changes: 0 additions & 3 deletions packages/av/Dockerfile.stage3
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM base
ARG PYTHON_VERSION
ARG VERSION
ARG OUTPUT_DIR

WORKDIR pyav-ffmpeg
RUN ${FFMPEG_BUILD_CMD_PREFIX} 3
Expand Down
9 changes: 6 additions & 3 deletions packages/av/build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
strategy: dockerfile
source:
- ./Dockerfile.stage1
- ./Dockerfile.stage2
- ./Dockerfile.stage3
- file: ./Dockerfile.stage1
common: true
- file: ./Dockerfile.stage2
common: true
- file: ./Dockerfile.stage3
common: true
- ./Dockerfile.stage4

python:
Expand Down

0 comments on commit fb3c0a8

Please sign in to comment.