Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,19 @@ COPY --from=build --chown=1001 /app/target_packages /app/target_packages

ENV SHARED_PACKAGE_PATH="/shared_packages/app/"

COPY scripts/copy_script.sh /app/

RUN chmod +x /app/copy_script.sh

# The entrypoint for this image is designed to follow its usage, i.e
# to be used along with vllm image. Therefore, in this image, we
# only copy the package(s) to a shared package path
# NOTE: Along with this, one may need to adjust PYTHONPATH to call
# this package, depending on setup.
# Example: PYTHONPATH='${SHARED_PACKAGE_PATH}:${PYTHONPATH}'
ENTRYPOINT ["/bin/bash", "-c", "cp -r /app/target_packages/* ${SHARED_PACKAGE_PATH}" ]
ENTRYPOINT ["/app/copy_script.sh"]

CMD ["/bin/bash"]

### Release Layer (with vllm-tgis-adapter)
FROM release as release_tgis_adapter
Expand Down
1 change: 1 addition & 0 deletions scripts/copy_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
# Copy files from a specific location to the desired destination
cp -r /app/target_packages/* ${SHARED_PACKAGE_PATH}

touch ${SHARED_PACKAGE_PATH}/finished_installation
# # Run the main command
# exec "$@"