Compare commits

...

1 Commits

Author SHA1 Message Date
Kilian von Pflugk a588cbfb7b reduce docker image size even more 2022-04-17 01:47:26 +02:00
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1 @@
.git *
Dockerfile
.dockerignore
.gitignore

View File

@ -1,7 +1,7 @@
FROM alpine:3.7 as build FROM alpine:3.7 as build
RUN apk add git make cmake g++ libgcrypt-dev yajl-dev yajl \ RUN apk add git make cmake g++ libgcrypt-dev yajl-dev yajl \
boost-dev curl-dev expat-dev cppunit-dev binutils-dev \ boost-dev curl-dev expat-dev cppunit-dev binutils-dev \
pkgconfig \ pkgconfig \
&& git clone https://github.com/vitalif/grive2.git \ && git clone https://github.com/vitalif/grive2.git \
&& mkdir grive2/build \ && mkdir grive2/build \
@ -9,7 +9,7 @@ RUN apk add git make cmake g++ libgcrypt-dev yajl-dev yajl \
&& cmake .. \ && cmake .. \
&& make -j4 \ && make -j4 \
&& make install \ && make install \
&& cd ../.. \ && cd ../.. \
&& rm -rf grive2 \ && rm -rf grive2 \
&& mkdir /drive && mkdir /drive
@ -18,8 +18,8 @@ COPY --from=build /usr/local/bin/grive /bin/grive
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 /bin/dumb-init ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 /bin/dumb-init
RUN chmod 777 /bin/dumb-init /bin/grive \ RUN chmod 777 /bin/dumb-init /bin/grive \
&& mkdir /data \ && mkdir /data \
&& apk add yajl-dev curl-dev libgcrypt \ && apk add yajl libcurl libgcrypt \
boost-program_options boost-regex libstdc++ boost-system boost-dev binutils-dev \ boost-program_options boost-regex libstdc++ boost-system boost binutils \
&& apk add boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && apk add boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
VOLUME /data VOLUME /data