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

Fix Dockerfile #344

Merged
merged 1 commit into from
May 14, 2021
Merged
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
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ RUN apk add git make cmake g++ libgcrypt-dev yajl-dev yajl \

FROM alpine:3.7
COPY --from=build /usr/local/bin/grive /bin/grive
COPY ./entrypoint.sh /root/entrypoint.sh
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 /bin/dumb-init
RUN chmod 777 /root/entrypoint.sh /bin/dumb-init /bin/grive \
&& mkdir /drive \
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 boost-filesystem --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
VOLUME /drive
WORKDIR /drive
ENTRYPOINT ["dumb-init", "--"]
CMD ["/root/entrypoint.sh"]

VOLUME /data
WORKDIR /data
ENTRYPOINT ["dumb-init", "grive"]