File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ENV GOROOT=/usr/local/go \
1010USER root
1111RUN apt-get update && \
1212 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
13- default-jdk maven gradle php php-cli php-mbstring php-xml ruby ruby-dev unzip python-poetry python-black ruff pipx && \
13+ default-jdk maven gradle php php-cli php-mbstring php-xml ruby ruby-dev unzip && \
1414 rm -rf /var/lib/apt/lists/*
1515
1616USER project
@@ -21,8 +21,13 @@ RUN ARCH=$(dpkg --print-architecture) && if [ "$ARCH" = "amd64" ]; then GO_ARCH=
2121 curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
2222 gem install bundler && \
2323 KOTLIN_VERSION=$(curl -s https://api.github.com/repos/JetBrains/kotlin/releases/latest | grep '"tag_name"' | sed -E 's/.*"v([^"]+)".*/\1 /' ) && curl -sL https://github.com/JetBrains/kotlin/releases/download/v${KOTLIN_VERSION}/kotlin-compiler-${KOTLIN_VERSION}.zip -o kotlin.zip && unzip -q kotlin.zip -d /opt && rm kotlin.zip && chmod -R a+rx /opt/kotlinc && \
24- su - project -c 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest' && \
25- su - project -c 'go install golang.org/x/tools/gopls@latest'
24+ if [ -f /usr/lib/python*/EXTERNALLY-MANAGED ]; then \
25+ pip3 install --no-cache-dir --break-system-packages poetry black mypy ruff pipx; \
26+ else \
27+ pip3 install --no-cache-dir poetry black mypy ruff pipx; \
28+ fi && \
29+ su - project -c 'export PATH=/usr/local/go/bin:/go/bin:$PATH && export GOROOT=/usr/local/go && export GOPATH=/go && go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest' && \
30+ su - project -c 'export PATH=/usr/local/go/bin:/go/bin:$PATH && export GOROOT=/usr/local/go && export GOPATH=/go && go install golang.org/x/tools/gopls@latest'
2631
2732USER project
2833
You can’t perform that action at this time.
0 commit comments