Skip to content

Commit

Permalink
Make docker image smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Wolf committed Nov 13, 2024
1 parent 54cfada commit 202961c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ WORKDIR /build
# Copy the built artifacts from the builder stage
COPY --from=builder /build/llama.cpp .

# Remove unnecessary files
RUN rm llama-* !("llama-server")
RUN rm ggml
RUN rm -r examples
RUN rm -r models

# Set the working directory for the application
WORKDIR /app

Expand Down

0 comments on commit 202961c

Please sign in to comment.