forked from fluffos/fluffos
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
33 lines (22 loc) · 870 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
FROM alpine:3.14 as builder
RUN apk add --no-progress --no-cache \
linux-headers gcc g++ clang-dev make cmake python2 bash \
mariadb-dev mariadb-static postgresql-dev sqlite-dev sqlite-static\
libevent-dev libevent-static libexecinfo-dev libexecinfo-static \
openssl-dev openssl-libs-static zlib-dev zlib-static icu-dev icu-static \
pcre-dev bison git
WORKDIR /build
RUN wget -O - https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 | tar -xj
WORKDIR /build/jemalloc-5.2.1
RUN ./configure --prefix=/usr \
&& make \
&& make install
COPY . /build/fluffos
RUN mkdir /build/fluffos/build
WORKDIR /build/fluffos/build
RUN cmake .. -DMARCH_NATIVE=OFF -DSTATIC=ON \
&& make install
FROM alpine:3.14
WORKDIR /fluffos
COPY --from=builder /build/fluffos/build/bin ./bin
ENTRYPOINT ["/fluffos/bin/driver"]