You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,10 @@ FROM quay.io/projectquay/golang:1.24 AS builder
17
17
ARG TARGETOS
18
18
ARG TARGETARCH
19
19
20
-
ENV GOPROXY=https://goproxy.io,direct
21
-
22
20
WORKDIR /workspace
23
21
24
22
USER root
25
-
RUN dnf install -y gcc-c++ libstdc++ libstdc++-devel && dnf clean all
23
+
RUN dnf install -y gcc-c++ libstdc++ libstdc++-devel clang && dnf clean all
26
24
27
25
# Copy the Go Modules manifests
28
26
COPY go.mod go.mod
@@ -35,6 +33,11 @@ RUN go mod download
35
33
COPY examples/kv-cache-index/main.go cmd/cmd.go
36
34
COPY . .
37
35
36
+
# HuggingFace tokenizer bindings
37
+
RUN mkdir -p lib
38
+
RUN curl -L https://github.com/daulet/tokenizers/releases/download/v1.20.2/libtokenizers.${TARGETOS}-${TARGETARCH}.tar.gz | tar -xz -C lib
39
+
RUN ranlib lib/*.a
40
+
38
41
# Build
39
42
# the GOARCH has not a default value to allow the binary be built according to the host where the command
40
43
# was called. For example, if we call make image-build in a local env which has the Apple Silicon M1 SO
0 commit comments