summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorTommy Nguyen <remyabel@gmail.com>2018-12-05 06:11:30 -0500
committerJesse Duffield <jessedduffield@gmail.com>2018-12-09 16:36:12 +1100
commitea6712dec862d8e5d4b7c8731409355a33e208fd (patch)
tree89361d89a38684c7d0b7cc45f3cbe6fa7aeb7655 /Dockerfile
parentde37a66ef35d47c033bcc51c4bf420f7366a7335 (diff)
Remove -a -installsuffix; copy to /bin/
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/