mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 21:06:01 +01:00
Use Dockerfile ADD to obtain ffmpeg and libvips source (#31498)
This commit is contained in:
parent
53c183f899
commit
a7a2ff6c1d
1 changed files with 12 additions and 6 deletions
18
Dockerfile
18
Dockerfile
|
@ -196,11 +196,14 @@ ARG VIPS_VERSION=8.15.3
|
||||||
ARG VIPS_URL=https://github.com/libvips/libvips/releases/download
|
ARG VIPS_URL=https://github.com/libvips/libvips/releases/download
|
||||||
|
|
||||||
WORKDIR /usr/local/libvips/src
|
WORKDIR /usr/local/libvips/src
|
||||||
|
# Download and extract libvips source code
|
||||||
|
ADD ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz /usr/local/libvips/src/
|
||||||
|
RUN tar xf vips-${VIPS_VERSION}.tar.xz;
|
||||||
|
|
||||||
|
WORKDIR /usr/local/libvips/src/vips-${VIPS_VERSION}
|
||||||
|
|
||||||
|
# Configure and compile libvips
|
||||||
RUN \
|
RUN \
|
||||||
curl -sSL -o vips-${VIPS_VERSION}.tar.xz ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.xz; \
|
|
||||||
tar xf vips-${VIPS_VERSION}.tar.xz; \
|
|
||||||
cd vips-${VIPS_VERSION}; \
|
|
||||||
meson setup build --prefix /usr/local/libvips --libdir=lib -Ddeprecated=false -Dintrospection=disabled -Dmodules=disabled -Dexamples=false; \
|
meson setup build --prefix /usr/local/libvips --libdir=lib -Ddeprecated=false -Dintrospection=disabled -Dmodules=disabled -Dexamples=false; \
|
||||||
cd build; \
|
cd build; \
|
||||||
ninja; \
|
ninja; \
|
||||||
|
@ -216,11 +219,14 @@ ARG FFMPEG_VERSION=7.0.2
|
||||||
ARG FFMPEG_URL=https://ffmpeg.org/releases
|
ARG FFMPEG_URL=https://ffmpeg.org/releases
|
||||||
|
|
||||||
WORKDIR /usr/local/ffmpeg/src
|
WORKDIR /usr/local/ffmpeg/src
|
||||||
|
# Download and extract ffmpeg source code
|
||||||
|
ADD ${FFMPEG_URL}/ffmpeg-${FFMPEG_VERSION}.tar.xz /usr/local/ffmpeg/src/
|
||||||
|
RUN tar xf ffmpeg-${FFMPEG_VERSION}.tar.xz;
|
||||||
|
|
||||||
|
WORKDIR /usr/local/ffmpeg/src/ffmpeg-${FFMPEG_VERSION}
|
||||||
|
|
||||||
|
# Configure and compile ffmpeg
|
||||||
RUN \
|
RUN \
|
||||||
curl -sSL -o ffmpeg-${FFMPEG_VERSION}.tar.xz ${FFMPEG_URL}/ffmpeg-${FFMPEG_VERSION}.tar.xz; \
|
|
||||||
tar xf ffmpeg-${FFMPEG_VERSION}.tar.xz; \
|
|
||||||
cd ffmpeg-${FFMPEG_VERSION}; \
|
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr/local/ffmpeg \
|
--prefix=/usr/local/ffmpeg \
|
||||||
--toolchain=hardened \
|
--toolchain=hardened \
|
||||||
|
|
Loading…
Reference in a new issue