Skip to content

Commit c832df1

Browse files
committed
build(docker): install uv and switch Python setup to uv sync
1 parent 88fadda commit c832df1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ RUN mkdir -p /opt/plog/src && curl -sL https://github.com/SergiusTheBest/plog/ar
4646

4747
RUN mkdir -p /opt/optix && curl -sL https://github.com/NVIDIA/optix-dev/archive/refs/tags/v${OPTIX_VERSION}.tar.gz | tar -xz --strip-components 1 -C /opt/optix
4848

49+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
50+
4951
SHELL ["/bin/bash", "-l", "-c"]
5052

5153
# Set up non-interactive shells by sourcing all of the scripts in /etc/profile.d/
@@ -67,16 +69,17 @@ ENV OPTICKS_PREFIX=/opt/eic-opticks
6769
ENV OPTICKS_HOME=/src/eic-opticks
6870
ENV OPTICKS_BUILD=/opt/eic-opticks/build
6971
ENV LD_LIBRARY_PATH=${OPTICKS_PREFIX}/lib:${LD_LIBRARY_PATH}
70-
ENV PATH=${OPTICKS_PREFIX}/bin:${PATH}
72+
ENV PATH=${OPTICKS_PREFIX}/bin:/root/.local/bin:$OPTICKS_HOME/.venv/bin:${PATH}
7173
ENV NVIDIA_DRIVER_CAPABILITIES=graphics,compute,utility
7274
ENV CSGOptiX__optixpath=${OPTICKS_PREFIX}/ptx/CSGOptiX_generated_CSGOptiX7.cu.ptx
75+
ENV VIRTUAL_ENV=$OPTICKS_HOME/.venv
7376

7477
WORKDIR $OPTICKS_HOME
7578

7679
# Install Python dependencies
7780
COPY pyproject.toml $OPTICKS_HOME/
7881
COPY optiphy $OPTICKS_HOME/optiphy
79-
RUN python -m pip install --upgrade pip && pip install -e $OPTICKS_HOME
82+
RUN uv sync
8083

8184

8285
FROM base AS release

0 commit comments

Comments
 (0)