Skip to content

Commit 040c0ea

Browse files
authored
Copy remote branch entrypoint to compile and production images (#3213)
1 parent 160bee7 commit 040c0ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ RUN \
7878

7979
WORKDIR "serve"
8080

81+
RUN cp docker/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh
82+
8183
RUN \
8284
if echo "$BASE_IMAGE" | grep -q "cuda:"; then \
8385
# Install CUDA version specific binary when CUDA version is specified as a build arg
@@ -131,11 +133,9 @@ RUN useradd -m model-server \
131133
&& mkdir -p /home/model-server/tmp
132134

133135
COPY --chown=model-server --from=compile-image /home/venv /home/venv
134-
136+
COPY --from=compile-image /usr/local/bin/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh
135137
ENV PATH="/home/venv/bin:$PATH"
136138

137-
COPY docker/dockerd-entrypoint.sh /usr/local/bin/dockerd-entrypoint.sh
138-
139139
RUN chmod +x /usr/local/bin/dockerd-entrypoint.sh \
140140
&& chown -R model-server /home/model-server
141141

docker/build_image.sh

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ do
4343
if test $
4444
then
4545
BRANCH_NAME="$2"
46+
LOCAL_CHANGES=false
4647
shift
4748
else
4849
echo "Error! branch_name not provided"

0 commit comments

Comments
 (0)