Permalink
Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up
jesseduffield
repurpose lazygit code
cf5ec17
May 11, 2019
# run with: | |
# docker build -t lazydocker . | |
# docker run -it lazydocker:latest /bin/sh -l | |
FROM golang:alpine | |
WORKDIR /go/src/github.com/jesseduffield/lazydocker/ | |
COPY ./ . | |
RUN CGO_ENABLED=0 GOOS=linux go build | |
FROM alpine:latest | |
RUN apk add -U git xdg-utils | |
WORKDIR /go/src/github.com/jesseduffield/lazydocker/ | |
COPY --from=0 /go/src/github.com/jesseduffield/lazydocker /go/src/github.com/jesseduffield/lazydocker | |
COPY --from=0 /go/src/github.com/jesseduffield/lazydocker/lazydocker /bin/ | |
RUN echo "alias gg=lazydocker" >> ~/.profile |