mirror of https://github.com/vitalif/grive2
Why not just go ahead and run the executable on entry?
parent
48bfe66bab
commit
f5e1b67b4c
|
@ -1 +1,4 @@
|
||||||
.git
|
.git
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
.gitignore
|
||||||
|
|
14
Dockerfile
14
Dockerfile
|
@ -7,11 +7,21 @@ RUN apt-get update && \
|
||||||
binutils-dev pkg-config zlib1g-dev && \
|
binutils-dev pkg-config zlib1g-dev && \
|
||||||
rm -rf /var/cache/apt/archives
|
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
|
WORKDIR /data
|
||||||
|
|
||||||
RUN mkdir build && cd build && cmake .. && make -j4
|
ENTRYPOINT ["/usr/local/bin/grive"]
|
||||||
|
|
||||||
|
|
||||||
# docker build -t grive2 .
|
# docker build -t grive2 .
|
||||||
|
|
Loading…
Reference in New Issue