-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
42 lines (32 loc) · 886 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM buildpack-deps:jessie
MAINTAINER Tomas Korcak <[email protected]>
EXPOSE 5000 5000
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cmake \
gdb \
openssl \
&& rm -rf /var/lib/apt/lists/*
ENV RUST_CHANNEL nightly
RUN curl -s https://static.rust-lang.org/rustup.sh \
| sh -s -- --yes --disable-sudo --channel=$RUST_CHANNEL \
&& rustc --version && cargo --version
ENV CARGO_HOME /cargo
ENV SRC_PATH /src
RUN mkdir -p "$CARGO_HOME" "$SRC_PATH"
WORKDIR $SRC_PATH
RUN git clone git://github.com/couchbase/libcouchbase.git && \
cd libcouchbase && \
git checkout 2.5.8 && \
mkdir build && \
cd build && \
../cmake/configure && \
make && \
make install && \
ldconfig -vvv && \
cd .. && \
rm -rf libcouchbase
ADD . .
RUN make build-release && \
cargo install --force --path .
ENTRYPOINT ["/cargo/bin/gauc"]