diff --git a/Dockerfile b/Dockerfile index f7021c3..a298615 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/scripts/copy_script.sh b/scripts/copy_script.sh index a802132..90f31c0 100644 --- a/scripts/copy_script.sh +++ b/scripts/copy_script.sh @@ -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 "$@" \ No newline at end of file