Files
rocm-systems/docker/Dockerfile.test
T

28 lines
835 B
Docker
Raw Normal View History

2025-01-04 21:52:06 -05:00
# Use a base image
FROM rocm/dev-ubuntu-22.04
# Set the working directory
WORKDIR /app
# Update package list and install prerequisites
RUN apt-get update && apt-get install -y \
2025-02-26 11:39:37 -05:00
software-properties-common cmake locales git \
2025-01-04 21:52:06 -05:00
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update
2025-02-26 11:39:37 -05:00
# Allows running git commands in /app
RUN git config --global --add safe.directory /app
2025-01-04 21:52:06 -05:00
# Install Python 3.10 and pip
RUN apt-get install -y python3.10 python3.10-venv python3.10-dev python3-pip
# Set Python 3.10 as the default python3
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
# Install any dependencies specified in requirements.txt
2025-02-20 17:51:57 -05:00
# Run interactive bash shell
CMD ["/bin/bash", "-c", "\
python3 -m pip install -r requirements.txt -r requirements-test.txt \
2025-02-20 17:51:57 -05:00
&& exec /bin/bash \
"]