From 30dce2900594ea7c859244481c7b153d400dc2c6 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Wed, 29 Jun 2022 19:36:36 +0200 Subject: [PATCH] fix PL release docker (#13439) --- dockers/release/Dockerfile | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/dockers/release/Dockerfile b/dockers/release/Dockerfile index f2c27d5a79..cb393c91df 100644 --- a/dockers/release/Dockerfile +++ b/dockers/release/Dockerfile @@ -13,7 +13,7 @@ # limitations under the License. ARG PYTHON_VERSION=3.9 -ARG PYTORCH_VERSION=1.9 +ARG PYTORCH_VERSION=1.11 FROM pytorchlightning/pytorch_lightning:base-cuda-py${PYTHON_VERSION}-torch${PYTORCH_VERSION} @@ -21,23 +21,28 @@ LABEL maintainer="Lightning-AI " ARG LIGHTNING_VERSION="" -COPY ./ /home/pytorch-lightning/ +COPY ./ /home/lightning/ + +ENV PACKAGE_NAME=pytorch # install dependencies RUN \ cd /home && \ - mv pytorch-lightning/_notebooks notebooks && \ - mv pytorch-lightning/examples . && \ + mv lightning/_notebooks notebooks && \ + mv lightning/examples . && \ # replace by specific version if asked if [ ! -z "$LIGHTNING_VERSION" ] ; then \ - rm -rf pytorch-lightning ; \ + rm -rf lightning ; \ wget https://github.com/Lightning-AI/lightning/archive/${LIGHTNING_VERSION}.zip --progress=bar:force:noscroll ; \ unzip ${LIGHTNING_VERSION}.zip ; \ - mv pytorch-lightning-*/ pytorch-lightning ; \ + mv lightning-*/ lightning ; \ rm *.zip ; \ fi && \ - pip install ./pytorch-lightning["extra","loggers","strategies"] --no-cache-dir && \ - rm -rf pytorch-lightning + # otherwise there is collision with folder name ans pkg name on Pypi + cd lightning && \ + pip install .["extra","loggers","strategies"] --no-cache-dir && \ + cd .. && \ + rm -rf lightning RUN python --version && \ pip --version && \