This repository has been archived on 2020-02-22. You can view files and clone it, but cannot push or open issues/pull-requests.
arc_unpacker/Dockerfile

42 lines
1.1 KiB
Docker

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"]