mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-29 22:20:43 +00:00
Switch to bullseye
This commit is contained in:
parent
1507bb18eb
commit
9b498dc76a
1 changed files with 7 additions and 7 deletions
14
Dockerfile
14
Dockerfile
|
@ -1,4 +1,4 @@
|
||||||
ARG GO_VERSION=1.20
|
ARG GO_VERSION=1.20-bullseye
|
||||||
|
|
||||||
FROM golang:$GO_VERSION as requirements
|
FROM golang:$GO_VERSION as requirements
|
||||||
|
|
||||||
|
@ -9,13 +9,10 @@ ARG CUDA_MINOR_VERSION=7
|
||||||
ENV BUILD_TYPE=${BUILD_TYPE}
|
ENV BUILD_TYPE=${BUILD_TYPE}
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y ca-certificates cmake curl
|
apt-get install -y ca-certificates cmake curl patch
|
||||||
|
|
||||||
# CuBLAS requirements
|
# CuBLAS requirements
|
||||||
RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
|
RUN if [ "${BUILD_TYPE}" = "cublas" ]; then \
|
||||||
apt-get remove -y gcc-12 g++-12 && apt-get autoremove -y && apt-get install -y gcc-11 g++-11 && \
|
|
||||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11 && \
|
|
||||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11 && \
|
|
||||||
apt-get install -y software-properties-common && \
|
apt-get install -y software-properties-common && \
|
||||||
apt-add-repository contrib && \
|
apt-add-repository contrib && \
|
||||||
curl -O https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.0-1_all.deb && \
|
curl -O https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/cuda-keyring_1.0-1_all.deb && \
|
||||||
|
@ -44,6 +41,10 @@ ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY Makefile .
|
||||||
|
RUN make get-sources
|
||||||
|
COPY go.mod .
|
||||||
|
RUN make prepare
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
|
@ -61,9 +62,8 @@ RUN if [ "${FFMPEG}" = "true" ]; then \
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY . .
|
|
||||||
RUN make prepare-sources
|
|
||||||
COPY --from=builder /build/local-ai ./
|
COPY --from=builder /build/local-ai ./
|
||||||
|
COPY entrypoint.sh .
|
||||||
|
|
||||||
# Define the health check command
|
# Define the health check command
|
||||||
HEALTHCHECK --interval=1m --timeout=10m --retries=10 \
|
HEALTHCHECK --interval=1m --timeout=10m --retries=10 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue