mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-31 16:05:00 +00:00
Docker preserve sources (#590)
This commit is contained in:
parent
e37361985c
commit
7b9dcb05d4
2 changed files with 12 additions and 5 deletions
|
@ -41,6 +41,10 @@ ENV NVIDIA_VISIBLE_DEVICES=all
|
|||
|
||||
WORKDIR /build
|
||||
|
||||
COPY Makefile .
|
||||
RUN make get-sources
|
||||
COPY go.mod .
|
||||
RUN make prepare
|
||||
COPY . .
|
||||
RUN make build
|
||||
|
||||
|
@ -58,9 +62,8 @@ RUN if [ "${FFMPEG}" = "true" ]; then \
|
|||
|
||||
WORKDIR /build
|
||||
|
||||
COPY . .
|
||||
RUN make prepare-sources
|
||||
COPY --from=builder /build/local-ai ./
|
||||
COPY entrypoint.sh .
|
||||
|
||||
# Define the health check command
|
||||
HEALTHCHECK --interval=1m --timeout=10m --retries=10 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue