Skip to content

Commit

Permalink
Create tools for ffmpeg, ffprobe.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 18, 2023
1 parent 6b5ad2b commit eeb309f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "Release"
on:
push:
branches:
- 'node-av'
- 'tools'

jobs:
envs:
Expand All @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
# The github.ref is, for example, refs/tags/v5.0.145 or refs/tags/v5.0-r8
# Generate variables like:
# SRS_TAG=nodejs-v1.0.52
# SRS_TAG=tools-v1.0.52
# @see https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
- name: Generate varaiables
run: |
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM ${ARCH}ossrs/srs:ubuntu20 AS build
############################################################
# dist
############################################################
FROM ${ARCH}node:slim as dist
FROM ${ARCH}ubuntu:focal as dist

ARG BUILDPLATFORM
ARG TARGETPLATFORM
Expand All @@ -17,12 +17,12 @@ RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM"
# Copy all binaries.
COPY --from=build /usr/local/bin/ffmpeg4 /usr/local/bin/ffprobe4 /usr/local/bin/
COPY --from=build /usr/local/bin/ffmpeg5 /usr/local/bin/ffprobe5 /usr/local/bin/
RUN rm -f /usr/local/bin/ffmpeg && ln -sf /usr/local/bin/ffmpeg5 /usr/local/bin/ffmpeg
RUN rm -f /usr/local/bin/ffprobe && ln -sf /usr/local/bin/ffprobe5 /usr/local/bin/ffprobe
RUN rm -f /usr/local/bin/ffmpeg && ln -sf /usr/local/bin/ffmpeg5 /usr/local/bin/ffmpeg && \
rm -f /usr/local/bin/ffprobe && ln -sf /usr/local/bin/ffprobe5 /usr/local/bin/ffprobe

# https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
ENV DEBIAN_FRONTEND noninteractive

# Install depends for FFmpeg.
RUN apt-get update && apt-get install -y libxml2-dev
RUN apt-get update && apt-get install -y libxml2-dev && rm -rf /var/lib/apt/lists/*

0 comments on commit eeb309f

Please sign in to comment.