build core, basic and go variants and add template
This commit is contained in:
17
go/Containerfile
Normal file
17
go/Containerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM code-basic
|
||||
USER root
|
||||
ENV HOME=/root
|
||||
|
||||
# Install alpine packages
|
||||
RUN apk add --no-cache go go-doc
|
||||
|
||||
# Install go packages
|
||||
ENV GOPATH=/usr/local/lib/go PATH=/usr/local/lib/go/bin:$PATH
|
||||
RUN go install golang.org/x/tools/gopls@latest && rm -rf $(go env GOCACHE)
|
||||
|
||||
# Add neovim config
|
||||
COPY nvim /etc/xdg/nvim
|
||||
|
||||
# Configure environment
|
||||
USER 1000:1000
|
||||
ENV HOME=/tmp
|
||||
Reference in New Issue
Block a user