mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-03 13:21:56 +02:00
Dockerfile improvements
This commit is contained in:
parent
ff856b7630
commit
de37a66ef3
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…
x
Reference in New Issue
Block a user