Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

add Dockerfile based on debian:9 #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:9-slim
ADD . /usr/local/twemperf
ENV buildDeps "gcc make autoconf g++ automake"
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
--no-install-recommends \
$buildDeps
RUN cd /usr/local/twemperf \
&& autoreconf -fvi \
&& CFLAGS=-"-ggdb3 -O0"./configure \
&& make \
&& make install
RUN apt-get purge -y --autoremove $buildDeps -o APT:AutoRemove::RecommendsImportant=false \
&& apt-get autoremove \
&& apt-get autoclean \
&& rm -rf /var/lib/apt-lists/* \
&& rm -rf /usr/local/twemperf/