mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
add glibc compat layer for alpine via apk
This commit is contained in:
parent
407f411e21
commit
b4fe702ec4
1 changed files with 10 additions and 2 deletions
12
Dockerfile
12
Dockerfile
|
@ -162,10 +162,18 @@ RUN curl -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktli
|
|||
####################
|
||||
# Install dart-sdk #
|
||||
####################
|
||||
# install alpine-pkg-glibc (glibc compatibility layer package for Alpine Linux)
|
||||
ARG GLIBC_VERSION='2.31-r0'
|
||||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk
|
||||
RUN apk add glibc-${GLIBC_VERSION}.apk
|
||||
|
||||
# install dart sdk
|
||||
ARG DART_VERSION='2.8.4'
|
||||
RUN wget https://storage.googleapis.com/dart-archive/channels/stable/release/${DART_VERSION}/sdk/dartsdk-linux-x64-release.zip -O - -q | unzip - \
|
||||
&& mv dart-sdk/bin/* /usr/bin \
|
||||
&& rm -r "dart-sdk"
|
||||
&& chmod +x dart-sdk/bin/dart* \
|
||||
&& mv dart-sdk/bin/* /usr/bin/ && mv dart-sdk/lib/* /usr/lib/ && mv dart-sdk/include/* /usr/include/ \
|
||||
&& rm -r dart-sdk/
|
||||
|
||||
###########################################
|
||||
# Load GitHub Env Vars for GitHub Actions #
|
||||
|
|
Loading…
Reference in a new issue