summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 5da545278..901ba1842 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,10 +5,9 @@
FROM golang:alpine
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY ./ .
-RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o lazygit .
+RUN CGO_ENABLED=0 GOOS=linux go build -o lazygit .
FROM alpine:latest
RUN apk add -U git xdg-utils
-WORKDIR /root/
-COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
-CMD ["./lazygit"]
+WORKDIR /go/src/github.com/jesseduffield/lazygit/
+COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/