-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (34 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
56 lines (34 loc) · 1.15 KB
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
46
47
48
49
50
51
52
FROM ubuntu:latest
WORKDIR /frate
# Install deps
RUN apt-get update && apt-get install -y \
wget \
gnupg \
software-properties-common
# add llvm repo
RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
RUN add-apt-repository ppa:ubuntu-toolchain-r/test
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
clang-17 \
ccache \
lua5.4 \
liblua5.4-dev \
libgit2-dev
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13
RUN wget -O lua.tar.gz https://www.lua.org/ftp/lua-5.4.6.tar.gz && \
tar -xzf lua.tar.gz && \
cd lua-5.4.6 && \
make linux test && \
make install
# set clang as default compiler
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang 9001
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 9001
# get frate from github
COPY ./frate .
# build frate
##RUN cmake -DCMAKE_BUILD_TYPE=Debug ./ && make -j20