Add Dockerfile (bench 5942433)

This commit is contained in:
2024-11-15 11:04:13 +01:00
parent dc95cd663e
commit 51b631dba6
2 changed files with 19 additions and 0 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
*

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM nimlang/nim:2.0.4-ubuntu-regular
RUN apt update && apt-get -y install git clang llvm lld
WORKDIR /app
COPY . /app/
# Force cache to be thrown away when new commits are pushed
ADD https://api.github.com/repos/nocturn9x/heimdall/git/refs/heads/master /.git-hashref
RUN git clone https://github.com/nocturn9x/heimdall --depth 1 && \
cd heimdall && nimble build -y
CMD ["heimdall/bin/heimdall"]