OdysseyDecomp/.devcontainer/Dockerfile
MonsterDruide1 af1a90a4ea
dev: Add Devcontainer setup for VS-Code (#63)
Co-authored-by: Fuzzy2319 <alexandre.verbrigghe@orange.fr>
2024-06-07 10:51:53 +02:00

25 lines
1,006 B
Docker

FROM ubuntu:24.04
WORKDIR /app
# avoid errors/configuration issues while installing other packages
ARG DEBIAN_FRONTEND=noninteractive
ARG TZ=Etc/UTC
RUN apt update
RUN apt install -y tzdata
# install git for collaboration management
RUN apt install -y git
# install dependencies for building and running the project
RUN apt install -y ccache clang cmake curl less libncurses6 libssl-dev ninja-build pip pkg-config python3-full xdelta3
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN pip install --break-system-packages ansiwrap capstone colorama cxxfilt pyelftools python-Levenshtein toml watchdog
# install dependencies for code environment
RUN apt install -y clangd clang-format clang-tidy
# install (outdated) libtinfo5, required for old clang version
RUN curl -o libtinfo5_6.4-2_amd64.deb http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.4-2_amd64.deb && dpkg -i libtinfo5_6.4-2_amd64.deb && rm -f libtinfo5_6.4-2_amd64.deb
ENTRYPOINT ["bash"]