-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (31 loc) · 1.49 KB
/
Dockerfile
File metadata and controls
38 lines (31 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM alpine:3.23.3
LABEL org.opencontainers.image.title="Inference Gateway CLI"
LABEL org.opencontainers.image.description="A powerful command-line interface for managing and interacting with the Inference Gateway. Provides interactive chat, autonomous agent capabilities, and extensive tool execution for AI models."
LABEL org.opencontainers.image.vendor="Inference Gateway"
LABEL org.opencontainers.image.authors="Inference Gateway Team"
LABEL org.opencontainers.image.url="https://github.com/inference-gateway/cli"
LABEL org.opencontainers.image.documentation="https://github.com/inference-gateway/cli#readme"
LABEL org.opencontainers.image.source="https://github.com/inference-gateway/cli"
LABEL org.opencontainers.image.licenses="MIT"
ARG VERSION=""
ARG REVISION=""
ARG BUILD_DATE=""
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.revision="${REVISION}"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
RUN apk --no-cache --no-scripts add ca-certificates jq bash git sqlite-libs
RUN addgroup -g 1000 infer && \
adduser -u 1000 -G infer -h /home/infer -s /bin/bash -D infer
ARG TARGETARCH
COPY --from=binaries infer-linux-${TARGETARCH} /usr/local/bin/infer
RUN chmod +x /usr/local/bin/infer
WORKDIR /home/infer
RUN mkdir -p .infer && chown -R infer:infer .infer
USER infer
ENV INFER_IN_CONTAINER=true
ENV INFER_GATEWAY_RUN=false
ENV INFER_GATEWAY_URL=http://inference-gateway:8080
ENV TERM=xterm-256color
ENV COLORTERM=truecolor
RUN infer init
ENTRYPOINT ["infer"]