Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce docker image size even more #361

Merged
merged 2 commits into from
Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
.git
Dockerfile
.dockerignore
.gitignore
*
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM alpine:3.7 as build

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 \
&& git clone https://github.com/vitalif/grive2.git \
&& mkdir grive2/build \
&& cd grive2/build \
&& cmake .. \
&& make -j4 \
&& make install \
&& cd ../.. \
&& cd ../.. \
&& rm -rf grive2 \
&& mkdir /drive

Expand All @@ -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
RUN chmod 777 /bin/dumb-init /bin/grive \
&& mkdir /data \
&& apk add yajl-dev curl-dev libgcrypt \
boost-program_options boost-regex libstdc++ boost-system boost-dev binutils-dev \
&& apk add yajl libcurl libgcrypt \
boost-program_options boost-regex libstdc++ boost-system boost binutils \
&& apk add boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main

VOLUME /data
Expand Down
1 change: 1 addition & 0 deletions libgrive/src/base/Syncer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "util/FileSystem.hh"

#include <memory>
#include <string>
#include <vector>
#include <iosfwd>
Expand Down