Skip to content

Commit

Permalink
added docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaSTL committed Dec 12, 2023
1 parent b8b645b commit 692ad60
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions Dockerfile
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




0 comments on commit 692ad60

Please sign in to comment.