Files
Andrey VelichkevichandGitHub 5748c7e855 [SDK] Fix empty list for env variables and numpy version (#2360)
* [SDK] Fix empty list for env variables

Signed-off-by: Andrey Velichkevich <[email protected]>

* Fix numpy version in tests

Signed-off-by: Andrey Velichkevich <[email protected]>

---------

Signed-off-by: Andrey Velichkevich <[email protected]>
2024-06-18 06:57:58 +00:00

17 lines
471 B
Docker

FROM python:3.11-slim
ENV TARGET_DIR /opt/darts-cnn-cifar10
ADD examples/v1beta1/trial-images/darts-cnn-cifar10 ${TARGET_DIR}
WORKDIR ${TARGET_DIR}
# TODO (andreyvelich): This is required since torchvision==0.17.1 is incompatible with numpy 2.0
RUN pip install numpy==1.26.0
RUN pip install --prefer-binary --no-cache-dir torch==2.2.1 torchvision==0.17.1
RUN chgrp -R 0 ${TARGET_DIR} \
&& chmod -R g+rwX ${TARGET_DIR}
ENTRYPOINT ["python3", "-u", "run_trial.py"]