-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (34 loc) · 1.49 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04
# This prevents interactive region dialoge
ENV DEBIAN_FRONTEND=noninteractive
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib64:$LD_LIBRARY_PATH
ENV PATH=/usr/local/nvidia/bin:$PATH
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common \
libsm6 libxext6 libxrender-dev curl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "**** Installing Python ****" && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install -y build-essential python3.6 python3.6-dev python3-pip && \
curl -O https://bootstrap.pypa.io/get-pip.py && \
python3.6 get-pip.py && \
rm -rf /var/lib/apt/lists/* && \
alias python3=python3.6
RUN apt-get update && \
apt-get install -y \
curl unzip wget git \
ffmpeg libsm6 libxext6 libglib2.0-0 libgl1-mesa-glx
RUN echo 'alias python=python3.6' >> ~/.bashrc
RUN echo 'alias python3=python3.6' >> ~/.bashrc
RUN echo 'alias pip=pip3.6' >> ~/.bashrc
RUN echo 'alias pip3=pip3.6' >> ~/.bashrc
RUN pip3 install pip --upgrade
WORKDIR /sisr
RUN pip3 install git+https://gitlab+deploy-token-28:xkxRsx2anp-u3_V4aAK9@publicgitlab.satellogic.com/iqf/iq_tool_box-
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install torch==1.7.0+cu110 torchvision==0.8.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html
RUN pip3 install rasterio==1.2.6
RUN pip3 install kornia --no-deps
CMD ["/bin/bash"]