Skip to content

Commit

Permalink
Copy remote branch entrypoint to compile and production images (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanxih committed Jun 28, 2024
1 parent 160bee7 commit 040c0ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ RUN \

WORKDIR "serve"

RUN cp docker/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh

RUN \
if echo "$BASE_IMAGE" | grep -q "cuda:"; then \
# Install CUDA version specific binary when CUDA version is specified as a build arg
Expand Down Expand Up @@ -131,11 +133,9 @@ RUN useradd -m model-server \
&& mkdir -p /home/model-server/tmp

COPY --chown=model-server --from=compile-image /home/venv /home/venv

COPY --from=compile-image /usr/local/bin/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh
ENV PATH="/home/venv/bin:$PATH"

COPY docker/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh

RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh \
&& chown -R model-server /home/model-server

Expand Down
1 change: 1 addition & 0 deletions docker/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ do
if test $
then
BRANCH_NAME="$2"
LOCAL_CHANGES=false
shift
else
echo "Error! branch_name not provided"
Expand Down

0 comments on commit 040c0ea

Please sign in to comment.