fix dockerfile.gpu

This commit is contained in:
lucmichalski
2020-04-08 08:02:03 +00:00
parent 3166cdca78
commit 766ff56e2e

View File

@@ -1,16 +1,16 @@
# 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
WORKDIR /root/build
COPY darknet.patch .
COPY Makefile.gpu .
RUN apt-get -y update && \
apt-get -y install git build-essential && \
git clone https://github.com/pjreddie/darknet.git && \
cd darknet && \
git checkout $darknet_commit && \
git apply ../darknet.patch && \
cp -f /root/build/Makefile.gpu Makefile && \
make
# Final Image