diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 21e10c6874..e0e8188815 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -49,7 +49,7 @@ mkdir -p $HOME/dynamo/.build/target export CARGO_TARGET_DIR=$HOME/dynamo/.build/target # build project, it will be saved at $HOME/dynamo/.build/target -cargo build --locked --profile dev --features mistralrs,python +cargo build --locked --profile dev --features mistralrs cargo doc --no-deps # create symlinks for the binaries in the deploy directory diff --git a/container/Dockerfile.vllm b/container/Dockerfile.vllm index e6b5661333..5637c063cc 100644 --- a/container/Dockerfile.vllm +++ b/container/Dockerfile.vllm @@ -298,15 +298,15 @@ COPY --from=base --chown=$USER_UID:$USER_GID /opt/dynamo/venv/ /opt/dynamo/venv/ RUN chown $USERNAME:$USERNAME /opt/dynamo/venv COPY --from=base --chown=$USERNAME:$USERNAME /usr/local/bin /usr/local/bin +# so we can use maturin develop +RUN uv pip install maturin + USER $USERNAME ENV HOME=/home/$USERNAME ENV PYTHONPATH=$HOME/dynamo/deploy/sdk/src:$PYTHONPATH:$HOME/dynamo/components/planner/src:$PYTHONPATH ENV CARGO_TARGET_DIR=$HOME/dynamo/.build/target WORKDIR $HOME -# so we can use maturin develop -RUN uv pip install maturin - # https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=$HOME/.commandhistory/.bash_history" \ && mkdir -p $HOME/.commandhistory \