Skip to content

Commit 346bac2

Browse files
committed
fix presets issue
1 parent 4fbe9a7 commit 346bac2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ RUN make
1818
COPY . .
1919
RUN rm -f composer.phar
2020

21+
# Fetch presets submodule in case it wasn't initialized in the build context
22+
RUN if [ ! -f presets/480p-generic.json ]; then \
23+
rm -rf presets && \
24+
git clone https://github.com/sportarchive/CloudTranscode-FFMpeg-presets.git presets; \
25+
fi
26+
2127
# ---- runtime ----
2228
FROM public.ecr.aws/docker/library/php:8.2-cli
2329

0 commit comments

Comments
 (0)