2023-04-13 01:13:14 +02:00
|
|
|
ARG GO_VERSION=1.20
|
|
|
|
ARG DEBIAN_VERSION=11
|
2023-04-21 15:29:32 -07:00
|
|
|
ARG BUILD_TYPE=
|
|
|
|
|
2023-04-13 01:13:14 +02:00
|
|
|
FROM golang:$GO_VERSION as builder
|
|
|
|
WORKDIR /build
|
2023-04-19 17:10:29 +02:00
|
|
|
RUN apt-get update && apt-get install -y cmake
|
2023-04-13 01:13:14 +02:00
|
|
|
COPY . .
|
2023-04-21 15:29:32 -07:00
|
|
|
RUN make build
|
2023-04-13 01:13:14 +02:00
|
|
|
|
|
|
|
FROM debian:$DEBIAN_VERSION
|
2023-04-19 18:43:10 +02:00
|
|
|
COPY --from=builder /build/local-ai /usr/bin/local-ai
|
2023-04-27 18:45:24 +02:00
|
|
|
EXPOSE 8080
|
2023-04-19 18:43:10 +02:00
|
|
|
ENTRYPOINT [ "/usr/bin/local-ai" ]
|