-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
28 lines (22 loc) · 958 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
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu18.04
RUN apt-get upgrade -y
RUN apt-get update
RUN apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev \
wget curl llvm libncursesw5-dev xz-utils libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev apt-utils p7zip unzip \
git
RUN cd /opt
RUN wget https://www.python.org/ftp/python/3.9.12/Python-3.9.12.tgz
RUN tar -xf Python-3.9.12.tgz
RUN cd Python-3.9.12 && ./configure && make && make install
RUN rm Python-3.9.12.tgz
RUN rm -r Python-3.9.12
RUN ln -s /usr/local/bin/python3 /usr/local/bin/python && \
ln -s /usr/local/bin/pip3 /usr/local/bin/pip
RUN apt-get install ffmpeg libsm6 libxext6 -y # Required to install open-cv
WORKDIR /TextBoxGAN
RUN git config --global --add safe.directory /TextBoxGAN
RUN pip install -U pip
RUN pip install poetry
RUN poetry config virtualenvs.create false
COPY pyproject.toml poetry.lock ./
RUN poetry install