Commit d90286c5 authored by Harrison Saturley-Hall's avatar Harrison Saturley-Hall Committed by GitHub
Browse files

fix: Dockerfile with duplicated command (#223)


Co-authored-by: default avatarAnant Sharma <anants@nvidia.com>
parent 4b1867c5
...@@ -342,8 +342,6 @@ FROM ${RUNTIME_IMAGE}:${RUNTIME_IMAGE_TAG} AS runtime ...@@ -342,8 +342,6 @@ FROM ${RUNTIME_IMAGE}:${RUNTIME_IMAGE_TAG} AS runtime
WORKDIR /workspace WORKDIR /workspace
ENV VIRTUAL_ENV=/opt/dynamo/venv ENV VIRTUAL_ENV=/opt/dynamo/venv
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Copy NIXL # Copy NIXL
COPY --from=build /usr/local/nixl /usr/local/nixl COPY --from=build /usr/local/nixl /usr/local/nixl
ENV LD_LIBRARY_PATH=/usr/local/nixl/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH ENV LD_LIBRARY_PATH=/usr/local/nixl/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
...@@ -351,7 +349,9 @@ ENV PYTHONPATH=/usr/local/nixl/lib/python3/dist-packages/:/opt/nixl/test/python/ ...@@ -351,7 +349,9 @@ ENV PYTHONPATH=/usr/local/nixl/lib/python3/dist-packages/:/opt/nixl/test/python/
# Setup the python environment # Setup the python environment
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
RUN RUN apt-get install python3-dev && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-dev && \
rm -rf /var/lib/apt/lists/* && \
uv venv $VIRTUAL_ENV --python 3.12 && \ uv venv $VIRTUAL_ENV --python 3.12 && \
echo "source $VIRTUAL_ENV/bin/activate" >> ~/.bashrc echo "source $VIRTUAL_ENV/bin/activate" >> ~/.bashrc
...@@ -371,5 +371,5 @@ RUN --mount=type=bind,source=./container/launch_message.txt,target=/workspace/la ...@@ -371,5 +371,5 @@ RUN --mount=type=bind,source=./container/launch_message.txt,target=/workspace/la
# Copy examples # Copy examples
COPY ./examples examples/ COPY ./examples examples/
ENTRYPOINT [/bin/sh] ENTRYPOINT [ "/usr/bin/bash" ]
CMD [] CMD []
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment