Dockerized every modules
This commit is contained in:
17
cpp/Dockerfile
Normal file
17
cpp/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM nvidia/cuda:12.4.1-devel-ubi9 as builder
|
||||
|
||||
WORKDIR /home/ViolaJones/cpp
|
||||
|
||||
COPY *.cu *.cpp *.hpp Makefile ./
|
||||
RUN make -j "$(nproc)"
|
||||
|
||||
FROM nvidia/cuda:12.4.1-base-ubi9
|
||||
|
||||
WORKDIR /home/ViolaJones/cpp
|
||||
|
||||
RUN dnf install -y make-1:4.3-7.el9 && dnf clean all
|
||||
COPY --from=builder /home/ViolaJones/cpp/bin ./bin
|
||||
COPY Makefile .
|
||||
|
||||
ENTRYPOINT ["make"]
|
||||
CMD ["start"]
|
Reference in New Issue
Block a user