commit 93b435e3778614099d5e840b637fe5ce1f805adf Author: Simon Bruder Date: Sat Feb 22 15:27:40 2020 +0000 Init diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..af05627 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +name: default + +steps: +- name: docker + image: plugins/docker + settings: + registry: r.sbruder.de + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: r.sbruder.de/arc_unpacker diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9a6001a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +FROM debian:testing as builder + +RUN apt-get update \ + && apt-get -y install \ + build-essential \ + cmake \ + git \ + libboost-filesystem-dev \ + libboost-locale-dev \ + libjpeg-dev \ + libpng-dev \ + libssl-dev \ + libwebp-dev \ + && rm -rf /var/lib/apt/lists + +RUN git clone --depth=1 https://github.com/vn-tools/arc_unpacker \ + && cd arc_unpacker \ + && grep -v test CMakeLists.txt > CMakeLists.txt.tmp \ + && mv CMakeLists.txt.tmp CMakeLists.txt \ + && touch /tmp/catch.h \ + && mkdir build \ + && cd build \ + && cmake -DCMAKE_BUILD_TYPE=release -DCATCH_PATH=/tmp/catch.h .. \ + && make -j 4 + +FROM debian:testing-slim + +RUN apt-get update \ + && apt-get -y install --no-install-recommends \ + libboost-filesystem1.67 \ + libboost-locale1.67 \ + libjpeg62 \ + libpng16-16 \ + libssl1.1 \ + libwebp6 \ + && rm -rf /var/lib/apt/lists + +COPY --from=builder /arc_unpacker/build/arc_unpacker /usr/local/bin/ +COPY --from=builder /arc_unpacker/etc/ /usr/local/etc/ + +ENTRYPOINT ["/usr/local/bin/arc_unpacker"]