Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lhr0909 authored Jan 1, 2023
1 parent 250fcad commit 44b6f5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu18.04
FROM nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04

RUN apt-get update && apt-get install -y build-essential software-properties-common git wget curl && \
add-apt-repository -y ppa:deadsnakes/ppa

RUN apt-get update && apt-get install -y python3.8 python3-distutils
RUN apt-get update && apt-get install -y python3.9 python3-distutils

RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2

# make some useful symlinks that are expected to exist
RUN cd /usr/bin \
&& ln -s python3 python

# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 21.3.1
ENV PYTHON_PIP_VERSION 22.3.1
# https://github.com/pypa/get-pip
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/c20b0cfd643cd4a19246ccf204e2997af70f6b21/public/get-pip.py
ENV PYTHON_GET_PIP_SHA256 fa6f3fb93cce234cd4e8dd2beb54a51ab9c247653b52855a48dd44e6b21ff28b
Expand Down Expand Up @@ -43,7 +43,7 @@ ENV PYTHONFAULTHANDLER=1 \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.1.11 \
PIPENV_VERSION=2021.11.23
POETRY_VERSION=1.3.1 \
PIPENV_VERSION=2022.12.19

RUN pip install "poetry==$POETRY_VERSION" "pipenv==$PIPENV_VERSION"

0 comments on commit 44b6f5e

Please sign in to comment.