mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: bun install
This commit is contained in:
parent
8421cfda56
commit
e698ebc510
18
Dockerfile
18
Dockerfile
@ -4,10 +4,20 @@ FROM base AS deps
|
|||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk --no-cache add ca-certificates wget
|
# Install glibc to run Bun
|
||||||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
RUN if [[ $(uname -m) == "aarch64" ]] ; \
|
||||||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
|
then \
|
||||||
RUN apk add --no-cache --force-overwrite glibc-2.28-r0.apk
|
# aarch64
|
||||||
|
wget https://raw.githubusercontent.com/squishyu/alpine-pkg-glibc-aarch64-bin/master/glibc-2.26-r1.apk ; \
|
||||||
|
apk add --no-cache --allow-untrusted --force-overwrite glibc-2.26-r1.apk ; \
|
||||||
|
rm glibc-2.26-r1.apk ; \
|
||||||
|
else \
|
||||||
|
# x86_64
|
||||||
|
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk ; \
|
||||||
|
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub ; \
|
||||||
|
apk add --no-cache --force-overwrite glibc-2.28-r0.apk ; \
|
||||||
|
rm glibc-2.28-r0.apk ; \
|
||||||
|
fi
|
||||||
|
|
||||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* ./
|
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* bun.lockb* ./
|
||||||
RUN \
|
RUN \
|
||||||
|
Loading…
Reference in New Issue
Block a user