forked from rust-leipzig/regex-performance
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 690 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 690 Bytes
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
FROM debian:9
# Install basic dependencies
RUN apt-get update -y && apt-get install -y \
g++ \
cmake ragel python3 \
libboost-dev libpcap-dev \
autoconf automake autopoint \
gettext libtool git
# Install rustc
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Install tini
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/local/sbin/tini
RUN chmod +x /usr/local/sbin/tini
# Setup project
WORKDIR /a
COPY . .
WORKDIR /a/build
RUN cmake ..
RUN make
ENTRYPOINT ["/usr/local/sbin/tini", "--"]
CMD ["./src/regex_perf", "-f", "../3200.txt"]