| 1 |
# Copyright 2019 The Go Authors. All rights reserved. |
| 2 |
# Use of this source code is governed by a BSD-style |
| 3 |
# license that can be found in the LICENSE file. |
| 4 |
|
| 5 |
# govim requires a more recent version of vim than is available in most |
| 6 |
# distros, so we build from their base image. |
| 7 |
FROM govim/govim:latest-vim |
| 8 |
ARG GOVIM_REF |
| 9 |
|
| 10 |
ENV GOPROXY=https://proxy.golang.org GOPATH=/go VIM_FLAVOR=vim |
| 11 |
WORKDIR /src |
| 12 |
|
| 13 |
# Clone govim. In order to use the go command for resolving latest, we download |
| 14 |
# a redundant copy of govim to the build cache using `go mod download`. |
| 15 |
RUN git clone https://github.com/govim/govim /src/govim && cd /src/govim && \ |
| 16 |
git checkout $GOVIM_REF |