Add Dockerfile (bench 5942433)
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
||||
*
|
||||
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user