-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (33 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM golang:alpine as build
# At some point, I wanted to use the vhs command `screenshot` which wasn't available in version 0.6.0.
# I couldn't use `@latest` as it seemed to download the latest released tag in GitHub (0.6.0) even with GOPROXY=direct
# The solution is to download with #main
#RUN go install github.com/charmbracelet/vhs@main
# Currently I don't need the command `screenshot`
RUN go install github.com/charmbracelet/vhs@latest
RUN go install github.com/charmbracelet/gum@latest
FROM ghcr.io/charmbracelet/vhs
RUN <<EOF
# Install vim, make, and docker. Ref: https://docs.docker.com/engine/install/debian/
apt-get update
apt-get install -y --no-install-recommends \
neovim \
shellcheck \
gettext-base \
git \
make \
curl
rm -rf /var/lib/apt/lists/*
# Test tools are installed
nvim --version
envsubst --version
shellcheck --version
git --version
make --version
curl --version
EOF
COPY --from=build /go/bin/vhs /usr/bin/vhs
RUN vhs --version
COPY --from=build /go/bin/gum /usr/bin/gum
RUN gum --version
COPY nvim-init.lua /root/.config/nvim/init.lua