mirror of https://github.com/iconify/api.git
fix: switched to yarn since npm fails to install pnpm on arm64v8
This commit is contained in:
parent
fc1eeb714e
commit
c346074c71
|
|
@ -26,9 +26,10 @@ RUN set -ex && \
|
||||||
bash \
|
bash \
|
||||||
curl \
|
curl \
|
||||||
nano \
|
nano \
|
||||||
|
yarn \
|
||||||
git && \
|
git && \
|
||||||
npm install --location=global pnpm && \
|
|
||||||
mkdir -p /data/iconify-api && \
|
mkdir -p /data/iconify-api && \
|
||||||
|
yarn global add pnpm && \
|
||||||
deluser --remove-home node && \
|
deluser --remove-home node && \
|
||||||
useradd --home-dir /data/iconify-api --uid 1000 --shell /bin/bash iconify-api && \
|
useradd --home-dir /data/iconify-api --uid 1000 --shell /bin/bash iconify-api && \
|
||||||
chown -R iconify-api:root /data/iconify-api && chmod -R g+rwX /data/iconify-api && \
|
chown -R iconify-api:root /data/iconify-api && chmod -R g+rwX /data/iconify-api && \
|
||||||
|
|
@ -44,9 +45,9 @@ WORKDIR /data/iconify-api
|
||||||
|
|
||||||
#### Stage iconify-api-install #########################################################################################
|
#### Stage iconify-api-install #########################################################################################
|
||||||
FROM base AS iconify-api-install
|
FROM base AS iconify-api-install
|
||||||
|
ARG SRC_PATH
|
||||||
|
|
||||||
# Make CERTAIN peer dependencies are installed, otherwise this will very likely fail
|
# Make CERTAIN peer dependencies are installed, otherwise this will very likely fail
|
||||||
|
|
||||||
COPY ${SRC_PATH} /data/iconify-api/
|
COPY ${SRC_PATH} /data/iconify-api/
|
||||||
COPY init.sh /init.sh
|
COPY init.sh /init.sh
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue