Skip to content

Commit 8d196c7

Browse files
authored
Merge pull request #78 from mhugot/feature/cloudtranscode-presets
fix presets issue
2 parents 4fbe9a7 + 346bac2 commit 8d196c7

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)