bash<br>FROM golang:1.23-alpine<br>WORKDIR /app<br>RUN apk add --no-cache git<br>RUN git clone https://github.com/danielmiessler/fabric.git .<br>RUN go install github.com/danielmiessler/fabric@latest<br>ENV GOROOT=/usr/local/go<br>ENV GOPATH=/root/go<br>ENV PATH=$GOPATH/bin:/root/.local/bin:/usr/local/bin:$PATH<br><br>CMD ["fabric", "-h"]<br>
echo “Tell me a story make it 1 sentence | docker run –rm -i -v /home/root/.config/fabric:/root/.config/fabric the-fabric fabric -sp ai
.bashrc
alias pbcopy=’xsel –clipboard –input’
alias pbpaste=’xsel –clipboard -output’
alias fb=’docker run –rm -i \
-v /home/root/.config/fabric:/root/.config/fabric \
the-fabric fabric”
source .
echo “Tell me something” | fb -sp ai
pbpaste | fb -sp summarize
