-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
28 lines (23 loc) · 900 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
# Copyright (c) 2022 Zhenglong WU
FROM ubuntu:22.04
ENV XMAKE_ROOT=y
COPY ./pac.lua /root/.xmake/
RUN apt update \
&& apt install -y apt-utils software-properties-common \
&& apt-add-repository ppa:fish-shell/release-3 \
&& add-apt-repository ppa:xmake-io/xmake \
&& apt update \
&& apt install -y fish vim wget curl tldr unzip git gcc g++ xmake cmake build-essential openssl libcurl4-openssl-dev python3 python3-pip \
&& apt dist-upgrade -y \
&& cd ~ \
# && git clone https://github.com/google/googletest.git \
&& git clone https://hub.fastgit.xyz/google/googletest.git \
&& cd googletest \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_CXX_FLAGS='-D_GLIBCXX_USE_CXX11_ABI=0' .. \
&& make \
&& make install \
&& pip install conan==1.54.0 antlr4-tools==0.1 \
&& xrepo install -y conan::antlr4-cppruntime/4.11.1
WORKDIR /root