Skip to content

Commit

Permalink
Install both lightning and pytorch-lightning in docker image (#18898
Browse files Browse the repository at this point in the history
)
  • Loading branch information
awaelchli authored Nov 4, 2023
1 parent faa64c5 commit 4af77c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dockers/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ ARG LIGHTNING_VERSION=""

COPY ./ /home/lightning/

ENV PACKAGE_NAME=pytorch

# install dependencies
RUN \
cd /home && \
Expand All @@ -42,7 +40,8 @@ RUN \
# otherwise there is collision with folder name and pkg name on Pypi
cd lightning && \
pip install setuptools==59.5.0 && \
pip install '.[extra,loggers,strategies]' --no-cache-dir && \
PACKAGE_NAME=lightning pip install '.[extra,loggers,strategies]' --no-cache-dir && \
PACKAGE_NAME=pytorch pip install '.[extra,loggers,strategies]' --no-cache-dir && \
cd .. && \
rm -rf lightning

Expand Down

0 comments on commit 4af77c6

Please sign in to comment.