-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
executable file
·27 lines (21 loc) · 974 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
FROM ubuntu:20.04 as baseenv
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y vim automake build-essential git wget libssl-dev libtool python3 python3-pip texinfo yasm >/dev/null \
&& echo "tzdata tzdata/Areas select Asia"> ~/preseed.txt \
&& echo "tzdata tzdata/Zones/Asia select Shanghai" >> ~/preseed.txt \
&& debconf-set-selections ~/preseed.txt \
&& apt-get clean
#install cmake
RUN mkdir -p /thirdparty/cmake-src \
&& cd /thirdparty/cmake-src \
&& wget https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2.tar.gz >/dev/null \
&& tar -zxvf cmake-3.22.2.tar.gz >/dev/null \
&& cd cmake-3.22.2 \
&& ./bootstrap >/dev/null \
&& make >/dev/null \
&& make install
FROM baseenv as builder
COPY ./ /xsce/
RUN cd /xsce && ls && ./build.py libote spdz xsce clean && ./build.py install=/opt/xsce_install
FROM baseenv as machine
COPY --from=builder /opt/xsce_install/ /usr/local