Support multi-arch docker build

This commit is contained in:
hibobmaster
2023-03-30 12:51:37 +08:00
parent 73b2ede53a
commit ad7a365f32
2 changed files with 28 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ WORKDIR /app
COPY package.json yarn.lock* package-lock.json* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
if [ -f yarn.lock ]; then yarn install --frozen-lockfile --network-timeout 100000; \
elif [ -f package-lock.json ]; then npm ci; \
else echo "Lockfile not found." && exit 1; \
fi