Compile sinextract via Dockerfile and reorder items in Dockerfile to allow docker image caching

This commit is contained in:
Jakob Lell 2021-09-27 14:17:50 +02:00
parent 7996ab5503
commit 4326c8eb08
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,5 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
COPY . /extractor/
RUN apt-get update
#Install tzdata in non-interactive mode, otherwise it asks for timezones.
RUN apt-get install -y --no-install-recommends tzdata
@ -9,5 +8,8 @@ RUN apt-get install -y git android-sdk-libsparse-utils liblz4-tool brotli unrar
RUN apt-get install -y zip rsync
RUN apt-get install -y default-jdk # Required for "jar" utility, helps with some broken zip files
RUN apt-get install -y python2 # Required for splituapp
RUN apt-get install -y zlib1g-dev # Required for compiling sinextract
COPY . /extractor/
RUN cd /extractor/sinextract && make -j4
RUN cd /extractor && pip3 install -r requirements.txt
ENTRYPOINT ["/extractor/extractor.py"]