ADD previous work on dockerfile

This commit is contained in:
Shorssaud 2023-01-23 20:00:49 +01:00
parent 3dc2dd4e65
commit 9b4e27024c

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM nimlang/nim as builder
RUN apt update -qq && \
DEBIAN_FRONTEND="noninteractive" apt install -yq cmake curl make
FROM builder
ARG corecount=1
COPY nim-codex .
# TODO add a processor count variable argument
# RUN make -j6 update
# RUN make -j6 USE_SYSTEM_NIM=1 exec
RUN make -j${corecount} update
RUN make -j${corecount} USE_SYSTEM_NIM=1 exec
ENTRYPOINT ["."]