Skip to content

Commit a201c14

Browse files
authored
Merge pull request #79 from mhugot/feature/fix-presets
fix issue with preset
2 parents 8d196c7 + e9e296f commit a201c14

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
FROM alpine:3 AS ffmpeg-downloader
2+
RUN apk add --no-cache curl xz \
3+
&& curl -L https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-nonfree.tar.xz \
4+
-o /tmp/ffmpeg.tar.xz \
5+
&& tar -xJf /tmp/ffmpeg.tar.xz -C /tmp \
6+
&& mv /tmp/ffmpeg-master-latest-linux64-nonfree/bin/ffmpeg /usr/local/bin/ffmpeg \
7+
&& mv /tmp/ffmpeg-master-latest-linux64-nonfree/bin/ffprobe /usr/local/bin/ffprobe
8+
19
FROM public.ecr.aws/docker/library/php:8.2-cli AS builder
210

311
RUN DEBIAN_FRONTEND=noninteractive \
@@ -33,10 +41,12 @@ RUN echo "date.timezone = UTC" >> /usr/local/etc/php/conf.d/timezone.ini \
3341
&& apt-get install -y --no-install-recommends \
3442
libzip5 \
3543
imagemagick \
36-
ffmpeg \
3744
&& rm -rf /var/lib/apt/lists/* \
3845
&& useradd -r -u 1001 -g root worker
3946

47+
COPY --from=ffmpeg-downloader /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
48+
COPY --from=ffmpeg-downloader /usr/local/bin/ffprobe /usr/local/bin/ffprobe
49+
4050
COPY --from=builder /usr/local/lib/php/extensions/no-debug-non-zts-20220829/zip.so /usr/local/lib/php/extensions/no-debug-non-zts-20220829/
4151
COPY --from=builder /usr/local/etc/php/conf.d/docker-php-ext-zip.ini /usr/local/etc/php/conf.d/
4252

0 commit comments

Comments
 (0)