Skip to content

Commit ea96642

Browse files
committed
👷 Update dockerfile and copy script to add finished message
Signed-off-by: Gaurav-Kumbhat <Gaurav.Kumbhat@ibm.com>
1 parent c7e2a07 commit ea96642

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,19 @@ COPY --from=build --chown=1001 /app/target_packages /app/target_packages
4141

4242
ENV SHARED_PACKAGE_PATH="/shared_packages/app/"
4343

44+
COPY scripts/copy_script.sh /app/
45+
46+
RUN chmod +x /app/copy_script.sh
47+
4448
# The entrypoint for this image is designed to follow its usage, i.e
4549
# to be used along with vllm image. Therefore, in this image, we
4650
# only copy the package(s) to a shared package path
4751
# NOTE: Along with this, one may need to adjust PYTHONPATH to call
4852
# this package, depending on setup.
4953
# Example: PYTHONPATH='${SHARED_PACKAGE_PATH}:${PYTHONPATH}'
50-
ENTRYPOINT ["/bin/bash", "-c", "cp -r /app/target_packages/* ${SHARED_PACKAGE_PATH}" ]
54+
ENTRYPOINT ["/app/copy_script.sh"]
55+
56+
CMD ["/bin/bash"]
5157

5258
### Release Layer (with vllm-tgis-adapter)
5359
FROM release as release_tgis_adapter

scripts/copy_script.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
# Copy files from a specific location to the desired destination
44
cp -r /app/target_packages/* ${SHARED_PACKAGE_PATH}
55

6+
touch ${SHARED_PACKAGE_PATH}/finished_installation
67
# # Run the main command
78
# exec "$@"

0 commit comments

Comments
 (0)