ARG BASE_IMAGE=pytorch/pytorch:1.10.0-cuda11.3-cudnn8-runtime FROM $BASE_IMAGE # install utilities and dependencies RUN pip install classy-vision WORKDIR /workspace # download imagenet tiny for data RUN apt-get -q update && apt-get -q install -y wget unzip RUN wget -q http://cs231n.stanford.edu/tiny-imagenet-200.zip && unzip -q tiny-imagenet-200.zip -d data && rm tiny-imagenet-200.zip COPY imagenet.py . # create a template classy project in /workspace/classy_vision # (see https://classyvision.ai/#quickstart) RUN classy-project classy_vision USER root ENTRYPOINT ["python", "-m", "torch.distributed.run"] CMD ["--help"]