Why not just go ahead and run the executable on entry?

pull/201/head
Topher Sterling 2018-04-07 20:34:37 -06:00
parent 48bfe66bab
commit f5e1b67b4c
2 changed files with 16 additions and 3 deletions

View File

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

View File

@ -7,11 +7,21 @@ RUN apt-get update && \
binutils-dev pkg-config zlib1g-dev && \
rm -rf /var/cache/apt/archives
ADD . /data
ADD . /grive2
RUN cd /grive2 && \
mkdir build && \
cd build && \
cmake .. && \
make -j4 && \
mv /grive2/build/grive/grive /usr/local/bin/grive && \
rm -rf /grive2
VOLUME /data
WORKDIR /data
RUN mkdir build && cd build && cmake .. && make -j4
ENTRYPOINT ["/usr/local/bin/grive"]
# docker build -t grive2 .