Skip to content

Commit

Permalink
Add debian Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
akawashiro committed Oct 13, 2023
1 parent 587c9ce commit ca7de55
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions debian-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM debian:12.2
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ninja-build cmake gcc g++ git python3 python3-distutils python3-dev python3-pip nasm clang-format libcap-dev tmux zsh neovim
RUN pip3 install torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
COPY . /sloader
WORKDIR /sloader
RUN ./build_chibicc.sh
# TODO
# RUN ./run-format.sh
RUN rm -rf build
RUN mkdir build
RUN cmake -GNinja -S . -B build
RUN cmake --build build
RUN cd build && ctest --output-on-failure -j $(nproc)
RUN ./make-sloader-itself.sh

0 comments on commit ca7de55

Please sign in to comment.