-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdockerfile
37 lines (29 loc) · 941 Bytes
/
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
FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu20.04
ENV TZ=Asia/Tokyo
ENV DEBIAN_FRONTEND=noninteractive
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt -y update && apt -y upgrade
ARG PYTHON_VERSION=3.9
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y --no-install-recommends \
software-properties-common \
build-essential \
curl \
wget \
git \
ca-certificates \
poppler-utils \
libopencv-dev \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt update \
&& apt install -y --no-install-recommends \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
python3-pip \
python3-venv \
&& rm -rf /var/lib/apt/lists/*
RUN python${PYTHON_VERSION} --version
RUN update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
RUN python -m pip install --upgrade pip
RUN pip install yomitoku
WORKDIR /workspace