Skip to content

Commit

Permalink
[ENH]: update coordinator docker for faster build (chroma-core#1729)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
	 - Make dockerfile build faster for coordinator


## Test plan
*How are these changes tested?*
With tilt, locally

Co-authored-by: nicolas <[email protected]>
  • Loading branch information
nicolasgere and nicolas authored Feb 22, 2024
1 parent 12ad9e6 commit d9a8c28
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions go/coordinator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM golang:1.20-alpine3.18 as build

WORKDIR /src/chroma-coordinator
RUN apk add --no-cache make git build-base bash

ADD ./go/coordinator/go.mod ./go.mod
ADD ./go/coordinator/go.sum ./go.sum
ENV PATH=$PATH:/go/bin
ADD ./go/coordinator /src/chroma-coordinator
RUN go mod download

RUN cd /src/chroma-coordinator \
&& make
ADD ./go/coordinator ./
ENV GOCACHE=/root/.cache/go-build
RUN --mount=type=cache,target="/root/.cache/go-build" make

FROM alpine:3.17.3

Expand Down

0 comments on commit d9a8c28

Please sign in to comment.