-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (26 loc) · 1.74 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM pytorch/pytorch:1.3-cuda10.1-cudnn7-devel
WORKDIR /
CMD /bin/bash
RUN echo "deb http://mirrors.aliyun.com/ubuntu/ xenial main" >/etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial main" >> /etc/apt/sources.list&&\
echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main" >> /etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main" >>/etc/apt/sources.list&&\
echo "deb http://mirrors.aliyun.com/ubuntu/ xenial universe" >> /etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe" >> /etc/apt/sources.list&&\
echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe" >> /etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe" >>/etc/apt/sources.list&&\
echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-security main" >> /etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main" >> /etc/apt/sources.list&&\
echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe" >> /etc/apt/sources.list&&\
echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe" >> /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y wget zip g++ libsm6 libxrender1 libglib2.0-dev libxext-dev libjpeg-dev libpng-dev && \
wget https://github.com/aDecisionTree/CVPR2020UG2code/releases/download/v1/underwater_detect_new1.zip && \
unzip underwater_detect_new1.zip && \
pip install --upgrade pip && \
pip install -r requirements.txt && \
pip install scipy==1.0 && \
cd /lib && \
python setup.py build develop&& \
wget -P /vgg16/pascal_voc/ https://gaopursuit.oss-cn-beijing.aliyuncs.com/202004/faster_rcnn_1_20_1991.pth
COPY run.sh /