User newer alpine and clean Dockerfile

No longer need python-language-server dependencies or edge neovim
This commit is contained in:
ViViDboarder 2023-05-22 17:13:54 -07:00
parent d4c573263c
commit 5b3f3f51b4

View File

@ -1,4 +1,4 @@
FROM alpine:3.16 FROM alpine:3.18
RUN apk add --no-cache \ RUN apk add --no-cache \
bash \ bash \
@ -9,22 +9,18 @@ RUN apk add --no-cache \
go \ go \
luarocks \ luarocks \
make \ make \
neovim \
npm \ npm \
py3-pip \ py3-pip \
py3-pynvim \
python3 \ python3 \
; ;
# Install neovim from edge repo for latest
RUN apk add --no-cache neovim py3-pynvim --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
# Install shellcheck from edge repo because aarch64 build does not exist on main # Install shellcheck from edge repo because aarch64 build does not exist on main
RUN apk add --no-cache shellcheck --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community || true RUN apk add --no-cache shellcheck --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community || true
# Try to install rustup # Try to install rustup
RUN apk add --no-cache rustup || true RUN apk add --no-cache rustup || true
# Install dependencies for python-language-server
RUN apk add --no-cache gcc g++ python3-dev
# Create user # Create user
RUN adduser -D -h /home/vividboarder -s /bin/bash --ingroup users vividboarder RUN adduser -D -h /home/vividboarder -s /bin/bash --ingroup users vividboarder
USER vividboarder USER vividboarder