-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
45 lines (40 loc) · 1.09 KB
/
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
43
44
45
# Builds a Docker image that contains tauriond, and that will run the GSP
# process if executed.
FROM xaya/charon AS build
RUN apk add --no-cache \
autoconf \
autoconf-archive \
automake \
build-base \
cmake \
gflags-dev \
git \
libtool \
pkgconfig
# Build and install the Google benchmark library from source.
WORKDIR /usr/src/benchmark
RUN git clone https://github.com/google/benchmark .
RUN git clone https://github.com/google/googletest
RUN cmake . && make && make install/strip
# Build and install tauriond.
WORKDIR /usr/src/taurion
COPY . .
RUN make distclean || true
RUN ./autogen.sh && ./configure && make && make install-strip
# Collect the binary and required libraries.
WORKDIR /jail
RUN mkdir bin && cp /usr/local/bin/tauriond bin/
RUN cpld bin/tauriond lib64
# Construct final image.
FROM alpine
COPY --from=build /jail /usr/local/
ENV LD_LIBRARY_PATH "/usr/local/lib64"
LABEL description="Taurion game-state processor"
VOLUME ["/log", "/xayagame"]
ENV GLOG_log_dir "/log"
ENTRYPOINT [ \
"/usr/local/bin/tauriond", \
"--datadir=/xayagame", \
"--enable_pruning=1000" \
]
CMD []