Skip to content

Commit

Permalink
Anchor image tag to specific version
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui333 committed Oct 27, 2019
1 parent a1c6619 commit 84d869a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# docker build -t lazygit .
# docker run -it lazygit:latest /bin/sh -l

FROM golang:alpine
FROM golang:1.13-alpine3.10
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY ./ .
RUN CGO_ENABLED=0 GOOS=linux go build

FROM alpine:latest
FROM alpine:3.10
RUN apk add -U git xdg-utils
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
Expand Down

0 comments on commit 84d869a

Please sign in to comment.