@@ -11,6 +11,7 @@ RUN groupadd --gid 10001 app && \
1111
1212# Copy only required folders
1313COPY ["signingscript" , "/app/signingscript/" ]
14+ COPY ["scriptworker_client" , "/app/scriptworker_client/" ]
1415COPY ["configloader" , "/app/configloader/" ]
1516COPY ["docker.d" , "/app/docker.d/" ]
1617COPY ["vendored" , "/app/vendored/" ]
@@ -19,19 +20,18 @@ COPY ["vendored", "/app/vendored/"]
1920COPY ["version.jso[n]" , "/app/" ]
2021
2122# Change owner of /app to app:app
23+ # Build and install libdmg_hfsplus
2224# Install msix
2325# Install rcodesign
24- RUN chown -R app:app /app && \
25- cd /app/signingscript/docker.d && \
26- bash build_msix_packaging.sh && \
27- cp msix-packaging/.vs/bin/makemsix /usr/bin && \
28- cp msix-packaging/.vs/lib/libmsix.so /usr/lib && \
29- cd .. && \
30- rm -rf msix-packaging && \
31- wget -qO- \
32- https://github.com/indygreg/apple-platform-rs/releases/download/apple-codesign%2F0.22.0/apple-codesign-0.22.0-x86_64-unknown-linux-musl.tar.gz \
33- | tar xvz -C /usr/bin --transform 's/.*\/ //g' --wildcards --no-anchored 'rcodesign' && \
34- chmod +x /usr/bin/rcodesign
26+ RUN chown -R app:app /app \
27+ && cd /app/scriptworker_client \
28+ && pip install /app/scriptworker_client \
29+ && pip install -r requirements/base.txt \
30+ && pip install . \
31+ && cd /app/signingscript/docker.d \
32+ && bash build_libdmg_hfsplus.sh /usr/bin \
33+ && bash build_rcodesign.sh /usr/bin \
34+ && bash build_msix_packaging.sh
3535
3636# Set user and workdir
3737USER app
@@ -40,6 +40,7 @@ WORKDIR /app
4040# Install signingscript + configloader + widevine
4141RUN python -m venv /app \
4242 && cd signingscript \
43+ && /app/bin/pip install /app/scriptworker_client \
4344 && /app/bin/pip install -r requirements/base.txt \
4445 && /app/bin/pip install . \
4546 && python -m venv /app/configloader_venv \
0 commit comments