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