This commit is contained in:
aaron 2025-05-08 17:03:02 -04:00 committed by GitHub
commit 59dc906db4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,13 +1,11 @@
# run with:
# docker build -t lazygit .
# docker run -it lazygit:latest /bin/sh
# docker run -it lazygit:latest
FROM golang:1.24 as build
FROM golang:1.24 AS build
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build
RUN CGO_ENABLED=0 GOOS=linux go build -mod=vendor
FROM alpine:3.19
RUN apk add --no-cache -U git xdg-utils