Skip to content
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
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
FROM ubuntu:16.04 as builder
RUN apt-get update
RUN apt-get install -yy build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev git libboost-all-dev cmake flex
RUN \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
build-essential autoconf automake libpcre3-dev libevent-dev \
pkg-config zlib1g-dev git libboost-all-dev cmake flex
RUN git clone https://github.com/RedisLabs/memtier_benchmark.git
WORKDIR /memtier_benchmark
RUN autoreconf -ivf && ./configure && make && make install

FROM ubuntu:16.04
LABEL Description="memtier_benchmark"
COPY --from=builder /usr/local/bin/memtier_benchmark /usr/local/bin/memtier_benchmark
RUN apt-get update
RUN apt-get install -yy libevent-dev
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
libevent-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/

ENTRYPOINT ["memtier_benchmark"]