Add
This commit is contained in:
parent
04afc3c5ba
commit
9371647c18
|
|
@ -18,13 +18,18 @@ RUN apt-get update && apt-get install -y --allow-downgrades --no-install-recomme
|
||||||
unzip \
|
unzip \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
nodejs \
|
gnupg2 \
|
||||||
npm \
|
ca-certificates \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# === [ تنظیم ریجستری اختصاصی NPM ] ===
|
# === [ نصب Node.js نسخه 20 ] ===
|
||||||
RUN npm config set registry ${NPM_REGISTRY}
|
# از آنجا که مخازن دبیان نسخه 18 را دارند، نسخه 20 را مستقیم از مخزن رسمی میگیریم
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
|
&& apt-get install -y nodejs \
|
||||||
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# تنظیم ریجستری اختصاصی NPM شما
|
||||||
|
RUN npm config set registry ${NPM_REGISTRY}
|
||||||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
||||||
RUN install-php-extensions zip bcmath
|
RUN install-php-extensions zip bcmath
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user