try to make gpu image work

This commit is contained in:
UmutAlihan
2021-08-27 22:11:29 +03:00
parent 0152226da3
commit 35e0883894
3 changed files with 15 additions and 14 deletions

View File

@@ -5,9 +5,9 @@ ENV JUPYTER_ENABLE_LAB=yes
USER root
RUN apt-get update &&\
apt-get install zlib1g-dev
#apt-get install -y gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel make
RUN apt-get update && \
apt-get install zlib1g-dev && \
apt-get install -y gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel make
WORKDIR /opt
RUN \

View File

@@ -7,17 +7,17 @@ ENV JUPYTER_ENABLE_LAB=yes
USER root
RUN apt-get update &&\
apt-get install -y zlib1g-dev libpq-dev python-dev gcc
#apt-get install -y gcc gcc-c++ openssl-devel bzip2-devel libffi-devel zlib-devel make
apt-get install -y libpq-dev python-dev gcc make zlib1g-dev
#WORKDIR /opt
#RUN \
# curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz && \
# tar xzf Python-3.8.1.tgz
#WORKDIR /opt/Python-3.8.1
#RUN \
# ./configure --enable-optimizations && \
# make install
WORKDIR /opt
RUN \
curl -O https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz && \
tar xzf Python-3.8.1.tgz
WORKDIR /opt/Python-3.8.1
RUN \
./configure --enable-optimizations && \
make install
COPY requirements-jupyter.txt .
RUN pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org -r requirements-jupyter.txt && \

View File

@@ -8,7 +8,7 @@ tqdm>=4.61.2
colorama>=0.4.4
numpy>=1.21.0
setuptools>=57.0.0
pandas>=1.3.0
pandas
python-dateutil>=2.8.1
SQLAlchemy>=1.4.22
urllib3>=1.26.6
@@ -16,6 +16,7 @@ six>=1.16.0
greenlet>=1.1.0
psycopg2-binary
selenium>=3.141.0
numexpr>=2.7.0
transformers
torch
tensorflow