mirror of
https://github.com/open-goal/jak-project
synced 2026-05-23 06:54:31 -04:00
cbe21e3b4b
I'm switching away from visual studio (because its broken) so figured I'd document / commit the minimum to get a working environment with the editor I chose (Zed). Also cleaned up the main README so it's not so verbose, link out to secondary pages, etc. I also deleted the Arch and Fedora dockerfiles, they were broken. The ubuntu one still works, so i left it.
25 lines
795 B
Docker
25 lines
795 B
Docker
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update
|
|
RUN apt-get install -y gcc make cmake build-essential g++ nasm clang-format libxrandr-dev libxinerama-dev libxcursor-dev libpulse-dev libxi-dev python lld clang curl libssl-dev libstdc++-10-dev
|
|
|
|
RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
|
|
|
|
ARG user=jak
|
|
|
|
RUN useradd -m -d /home/${user} ${user}
|
|
|
|
USER $user
|
|
|
|
WORKDIR /home/$user
|
|
|
|
RUN mkdir /home/$user/jak-project/
|
|
COPY --chown=jak:jak . /home/$user/jak-project
|
|
|
|
WORKDIR /home/$user/jak-project/build
|
|
|
|
RUN cmake -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
|
|
WORKDIR /home/$user/jak-project
|
|
RUN cmake -B build && cmake --build build -j 8
|