forked from pjreddie/darknet
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev/alexey/master' into dev/cenit/deprecate_msbuild
- Loading branch information
Showing
33 changed files
with
616 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM ubuntu:latest AS builder | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y g++ make pkg-config libopencv-dev | ||
|
||
COPY . /darknet | ||
|
||
WORKDIR /darknet | ||
|
||
RUN rm Dockerfile.cpu | ||
|
||
RUN rm Dockerfile.gpu | ||
|
||
RUN rm Docker-compose.yml | ||
|
||
RUN make | ||
|
||
FROM ubuntu:latest | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y sudo libgomp1 | ||
|
||
RUN useradd -U -m yolo | ||
|
||
RUN usermod -aG sudo yolo | ||
|
||
RUN usermod --shell /bin/bash yolo | ||
|
||
RUN echo "yolo:yolo" | chpasswd | ||
|
||
COPY --from=builder /darknet /home/yolo/darknet | ||
|
||
RUN cp /home/yolo/darknet/libdarknet.so /usr/local/lib/libdarknet.so || echo "libso not used" | ||
|
||
RUN cp /home/yolo/darknet/include/darknet.h /usr/local/include/darknet.h | ||
|
||
RUN ldconfig | ||
|
||
WORKDIR /home/yolo/darknet | ||
|
||
USER yolo | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04 AS builder | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y g++ make pkg-config libopencv-dev | ||
|
||
COPY . /darknet | ||
|
||
WORKDIR /darknet | ||
|
||
RUN rm Dockerfile.cpu | ||
|
||
RUN rm Dockerfile.gpu | ||
|
||
RUN rm Docker-compose.yml | ||
|
||
RUN make | ||
|
||
FROM nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update -y | ||
|
||
RUN apt-get install -y sudo libgomp1 | ||
|
||
RUN useradd -U -m yolo | ||
|
||
RUN usermod -aG sudo yolo | ||
|
||
RUN usermod --shell /bin/bash yolo | ||
|
||
RUN echo "yolo:yolo" | chpasswd | ||
|
||
COPY --from=builder /darknet /home/yolo/darknet | ||
|
||
RUN cp /home/yolo/darknet/libdarknet.so /usr/local/lib/libdarknet.so || echo "libso not used" | ||
|
||
RUN cp /home/yolo/darknet/include/darknet.h /usr/local/include/darknet.h | ||
|
||
RUN ldconfig | ||
|
||
WORKDIR /home/yolo/darknet | ||
|
||
USER yolo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.