build core, basic and go variants and add template

This commit is contained in:
Dietrich Rink
2023-06-01 00:54:51 +02:00
parent 76e695ebbb
commit dd67e62569
31 changed files with 800 additions and 2 deletions

33
template/Containerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM code-basic
USER root
ENV HOME=/root
# Install alpine packages
###
### Replace ... with the alpine packaes you'd like to install.
### You can browser them on https://pkgs.alpinelinux.org/packages.
###
RUN apk add --no-cache ...
# Install neovim plugins
###
### Replace the first ... with <user>/<repo> strings for every neovim plugin
### you'd like to install from GitHub. Replace the second ... with a comma
### separated list of the <repo>s, that contain a doc directory.
###
WORKDIR /usr/local/share/nvim/site/pack/plugins/opt
RUN printf '%s\n' \
... \
| xargs -n1 -P0 -I'{}' git clone --depth 1 'https://github.com/{}'
RUN printf 'helptags %s\n' {...}/doc | nvim --noplugin -es
# Add neovim config
COPY nvim /etc/xdg/nvim
###
### Execute further instructions and copy furhter configurations here.
###
# Configure environment
USER 1000:1000
ENV HOME=/tmp