mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
tests: Add Pytorch Dockerfile
This PR adds Pytorch Dockerfile for kata metrics. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
1af03b9b32
commit
063f7aa7cb
19
tests/metrics/machine_learning/pytorch_dockerfile/Dockerfile
Normal file
19
tests/metrics/machine_learning/pytorch_dockerfile/Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright (c) 2023 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Usage: FROM [image name]
|
||||
FROM intel/intel-optimized-pytorch:1.12.100
|
||||
|
||||
# Version of the Dockerfile
|
||||
LABEL DOCKERFILE_VERSION="1.0"
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends build-essential curl git && \
|
||||
apt-get remove -y unattended-upgrades && \
|
||||
curl -OkL https://github.com/dionhaefner/pyhpc-benchmarks/archive/refs/tags/v3.0.tar.gz && \
|
||||
tar -xf v3.0.tar.gz && \
|
||||
pip install --no-cache-dir click==8.1.3 && \
|
||||
cd pyhpc-benchmarks-3.0 && pip3 install --no-cache-dir --user torch==1.10.0
|
||||
|
||||
CMD ["/bin/bash"]
|
Loading…
Reference in New Issue
Block a user