fix(playout): use unzip not python zipfile (preserves exec bits)
This commit is contained in:
parent
7ab70948a0
commit
f971d57bb9
1 changed files with 2 additions and 2 deletions
|
|
@ -26,11 +26,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Zip layout: casparcg_server/{bin/casparcg, lib/*.so, casparcg.config, ...}
|
||||
# Binary is bin/casparcg; lib/ has bundled .so files.
|
||||
WORKDIR /tmp/caspar
|
||||
RUN set -eux; \
|
||||
curl -fsSL "$CASPAR_URL" -o caspar.zip; \
|
||||
python3 -c "import zipfile,sys; zipfile.ZipFile('caspar.zip').extractall('/opt')"; \
|
||||
unzip -q caspar.zip -d /opt; \
|
||||
chmod +x /opt/casparcg_server/bin/casparcg /opt/casparcg_server/scanner 2>/dev/null || true; \
|
||||
ls /opt/casparcg_server/; \
|
||||
test -x /opt/casparcg_server/bin/casparcg; \
|
||||
ln -sfn /opt/casparcg_server /opt/casparcg; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue