mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Dockerfile improvements
This commit is contained in:
parent
ff856b7630
commit
de37a66ef3
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
@ -3,11 +3,12 @@
|
|||
# docker run -it lazygit:latest
|
||||
|
||||
FROM golang:alpine
|
||||
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
||||
COPY ./ .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o lazygit .
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk add -U git xdg-utils
|
||||
|
||||
ADD . /go/src/github.com/jesseduffield/lazygit
|
||||
|
||||
RUN go install github.com/jesseduffield/lazygit
|
||||
|
||||
WORKDIR /go/src/github.com/jesseduffield/lazygit
|
||||
WORKDIR /root/
|
||||
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
|
||||
CMD ["./lazygit"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue