mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-31 22:22:14 +02:00
Added ENTRYPOINT to Dockerfile to jump directly into lazy git while running the docker container
This commit is contained in:
parent
21e478dd59
commit
7b69aa1fda
@ -1,6 +1,6 @@
|
|||||||
# run with:
|
# run with:
|
||||||
# docker build -t lazygit .
|
# docker build -t lazygit .
|
||||||
# docker run -it lazygit:latest /bin/sh -l
|
# docker run -it lazygit:latest /bin/sh
|
||||||
|
|
||||||
FROM golang:1.14-alpine3.11
|
FROM golang:1.14-alpine3.11
|
||||||
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
||||||
@ -13,3 +13,5 @@ WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
|||||||
COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
|
||||||
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
|
||||||
RUN echo "alias gg=lazygit" >> ~/.profile
|
RUN echo "alias gg=lazygit" >> ~/.profile
|
||||||
|
|
||||||
|
ENTRYPOINT [ "lazygit" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user