This commit is contained in:
commit
93b435e377
13
.drone.yml
Normal file
13
.drone.yml
Normal file
|
@ -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
|
41
Dockerfile
Normal file
41
Dockerfile
Normal file
|
@ -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"]
|
Reference in a new issue