Skip to content

Commit 622aaa9

Browse files
committed
dockerfile: avoid pushing a big layer
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 7b1ee20 commit 622aaa9

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

Diff for: Dockerfile

+20-1
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,27 @@ COPY --from=builder /build/local-ai ./
178178
# do not let stablediffusion rebuild (requires an older version of absl)
179179
COPY --from=builder /build/backend-assets/grpc/stablediffusion ./backend-assets/grpc/stablediffusion
180180

181+
## Duplicated from Makefile to avoid having a big layer that's hard to push
181182
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
182-
PATH=$PATH:/opt/conda/bin make prepare-extra-conda-environments \
183+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/autogptq \
184+
; fi
185+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
186+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/bark \
187+
; fi
188+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
189+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/diffusers \
190+
; fi
191+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
192+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/vllm \
193+
; fi
194+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
195+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/huggingface \
196+
; fi
197+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
198+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/vall-e-x \
199+
; fi
200+
RUN if [ "${IMAGE_TYPE}" = "extras" ]; then \
201+
PATH=$PATH:/opt/conda/bin make -C extra/grpc/vall-e-x \
183202
; fi
184203

185204
# Copy VALLE-X as it's not a real "lib"

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ protogen-python:
386386
python3 -m grpc_tools.protoc -Ipkg/grpc/proto/ --python_out=extra/grpc/vllm/ --grpc_python_out=extra/grpc/vllm/ pkg/grpc/proto/backend.proto
387387

388388
## GRPC
389-
389+
# Note: it is duplicated in the Dockerfile
390390
prepare-extra-conda-environments:
391391
$(MAKE) -C extra/grpc/autogptq
392392
$(MAKE) -C extra/grpc/bark

0 commit comments

Comments
 (0)