forked from SerenityOS/jakt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 773 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
29
# To build: docker build --no-cache -t jakt:latest -f Dockerfile .
# To run: docker run -it jakt:latest
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
build-essential \
cmake \
git \
ninja-build \
clang-15 \
libclang-15-dev \
&& rm -rf /var/lib/apt/lists/
COPY . /project/jakt/
WORKDIR /project/jakt/
RUN ln -s /usr/bin/clang++-15 /usr/bin/clang++; \
ln -s /usr/bin/clang-15 /usr/bin/clang; \
ln -s /usr/bin/clang-cpp-15 /usr/bin/clang-cpp
RUN cmake -B build -GNinja -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_INSTALL_PREFIX=jakt-install
RUN ninja -C build install
RUN ln -s /project/jakt/jakt-install/bin/jakt /usr/bin/jakt
ENTRYPOINT ["/bin/bash"]