Added more docker servers as reference

Former-commit-id: aa9fbe9082
This commit is contained in:
2025-11-24 19:12:16 -06:00
parent c2d85e711b
commit 3b7d18d61d
28 changed files with 486 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
FROM alpine:3.22.1 as build
ARG VERSION=1.12.0
LABEL version="${VERSION}"
RUN apk add --no-cache \
build-base=0.5-r3 \
python3=3.12.11-r0 \
python3-dev=3.12.11-r0 \
py3-pip=25.1.1-r0 \
&& python3 -m venv /venv
WORKDIR /venv
RUN /venv/bin/pip install "python-lsp-server[all]==${VERSION}"
FROM alpine:3.22.1
RUN apk add --no-cache python3=3.12.11-r0 py3-pip=25.1.1-r0
WORKDIR /venv
COPY --from=build /venv .
ENV PATH="/venv/bin:$PATH"
CMD [ "/venv/bin/pylsp" ]