"examples/sampling/graphbolt/vscode:/vscode.git/clone" did not exist on "d9caeaaafc6a5eb7afefc26def1ce189be4f4d1c"
Commit fdb93ef2 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

fix dockerfile

parent 97ab3709
...@@ -2,15 +2,15 @@ FROM golang:1.20 ...@@ -2,15 +2,15 @@ FROM golang:1.20
RUN apt-get update && apt-get install -y cmake RUN apt-get update && apt-get install -y cmake
WORKDIR /go/src/github.com/jmorganca/ollama WORKDIR /go/src/github.com/jmorganca/ollama
COPY . . COPY . .
RUN go generate ./... RUN cmake -S llama -B llama/build && cmake --build llama/build
RUN CGO_ENABLED=1 go build -ldflags '-linkmode external -extldflags "-static"' . RUN CGO_ENABLED=1 go build -ldflags '-linkmode external -extldflags "-static"' .
FROM alpine FROM alpine
COPY --from=0 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama COPY --from=0 /go/src/github.com/jmorganca/ollama/ollama /bin/ollama
EXPOSE 80 EXPOSE 11434
EXPOSE 443
ARG USER=ollama ARG USER=ollama
ARG GROUP=ollama ARG GROUP=ollama
RUN addgroup -g 1000 $GROUP && adduser -u 1000 -DG $GROUP $USER RUN addgroup -g 1000 $GROUP && adduser -u 1000 -DG $GROUP $USER
USER $USER:$GROUP USER $USER:$GROUP
ENTRYPOINT ["/bin/ollama"] ENTRYPOINT ["/bin/ollama"]
CMD ["serve"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment