2020-10-02 09:26:21 +00:00
|
|
|
# Copyright The PyTorch Lightning team.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2021-11-04 17:26:24 +00:00
|
|
|
ARG PYTHON_VERSION=3.9
|
2022-06-15 00:46:44 +00:00
|
|
|
ARG PYTORCH_VERSION=1.9
|
2020-07-07 11:05:17 +00:00
|
|
|
|
2020-09-30 12:36:02 +00:00
|
|
|
FROM pytorchlightning/pytorch_lightning:base-xla-py${PYTHON_VERSION}-torch${PYTORCH_VERSION}
|
2020-07-02 01:44:19 +00:00
|
|
|
|
2022-06-15 23:33:43 +00:00
|
|
|
LABEL maintainer="Lightning-AI <https://github.com/Lightning-AI>"
|
2020-10-26 10:47:09 +00:00
|
|
|
|
2020-09-30 12:36:02 +00:00
|
|
|
COPY ./ ./pytorch-lightning/
|
2020-07-02 01:44:19 +00:00
|
|
|
|
2021-01-08 15:36:49 +00:00
|
|
|
# Pull the legacy checkpoints
|
2022-06-15 00:54:55 +00:00
|
|
|
RUN cd pytorch-lightning && \
|
|
|
|
bash .actions/pull_legacy_checkpoints.sh
|
2021-01-08 15:36:49 +00:00
|
|
|
|
2020-07-04 15:31:12 +00:00
|
|
|
RUN \
|
2022-03-11 11:13:43 +00:00
|
|
|
pip install -q fire && \
|
2021-10-26 11:58:20 +00:00
|
|
|
# drop unnecessary packages
|
2022-06-21 15:11:33 +00:00
|
|
|
pip install -r pytorch-lightning/requirements/pytorch/devel.txt --no-cache-dir
|
2020-07-02 01:44:19 +00:00
|
|
|
|
2020-09-30 12:36:02 +00:00
|
|
|
COPY ./dockers/tpu-tests/docker-entrypoint.sh /usr/local/bin/
|
2020-07-02 01:44:19 +00:00
|
|
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
|
|
CMD ["bash"]
|