Files
rocm-systems/projects/rocprofiler-compute/docker/Dockerfile.customrocmtest
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 regels
1.1 KiB
Docker

2025-06-17 16:18:35 -04:00
# Use a base image
2025-10-01 01:18:41 +05:30
FROM <rocm_build_image>
2025-06-17 16:18:35 -04:00
# Set the working directory
WORKDIR /app
# Update package list and install prerequisites
RUN apt-get update && apt-get install -y \
software-properties-common cmake locales git curl \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update
# Allows running git commands in /app
RUN git config --global --add safe.directory /app
# Generate the desired locale
RUN locale-gen en_US.UTF-8
# Install Python 3.10 and pip
RUN apt-get install -y python3.10 python3.10-venv python3.10-dev python3-pip libsqlite3-dev
2025-10-01 01:18:41 +05:30
RUN python3.10 -m venv venv
ENV PATH="venv/bin:$PATH"
RUN python -m pip install --upgrade pip
2025-06-17 16:18:35 -04:00
# Install any dependencies specified in requirements.txt
2025-10-01 01:18:41 +05:30
WORKDIR /app/projects/rocprofiler-compute
COPY projects/rocprofiler-compute/requirements.txt /app/projects/rocprofiler-compute/requirements.txt
COPY projects/rocprofiler-compute/requirements-test.txt /app/projects/rocprofiler-compute/requirements-test.txt
RUN python -m pip install -r requirements.txt -r requirements-test.txt
2025-06-17 16:18:35 -04:00
# Run interactive bash shell
2025-10-01 01:18:41 +05:30
CMD ["/bin/bash"]