-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
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 | ||
|
||
|
||
|
||
|