mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-09-27 03:56:18 +08:00
fix dockerfile.gpu
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
# Build phase
|
# Build phase
|
||||||
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 as builder
|
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 as builder
|
||||||
|
|
||||||
ENV darknet_commit=680d3bd
|
ENV darknet_commit=680d3bd
|
||||||
|
|
||||||
WORKDIR /root/build
|
WORKDIR /root/build
|
||||||
COPY darknet.patch .
|
COPY Makefile.gpu .
|
||||||
RUN apt-get -y update && \
|
RUN apt-get -y update && \
|
||||||
apt-get -y install git build-essential && \
|
apt-get -y install git build-essential && \
|
||||||
git clone https://github.com/pjreddie/darknet.git && \
|
git clone https://github.com/pjreddie/darknet.git && \
|
||||||
cd darknet && \
|
cd darknet && \
|
||||||
git checkout $darknet_commit && \
|
git checkout $darknet_commit && \
|
||||||
git apply ../darknet.patch && \
|
cp -f /root/build/Makefile.gpu Makefile && \
|
||||||
make
|
make
|
||||||
|
|
||||||
# Final Image
|
# Final Image
|
||||||
|
Reference in New Issue
Block a user