Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Feb 25, 2024
1 parent 6488ffb commit 5a9cd3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18 AS base

ARG TARGETPLATFORM

# Install dependencies only when needed
FROM base AS deps
# # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
Expand All @@ -9,7 +11,9 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json ./
RUN npm ci
RUN npm install -D @swc/cli @swc/core-linux-arm-gnueabihf @next/swc-linux-arm-gnueabihf
RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
npm install -D @swc/cli @swc/core-linux-arm-gnueabihf @next/swc-linux-arm-gnueabihf \
fi


# Rebuild the source code only when needed
Expand Down

0 comments on commit 5a9cd3d

Please sign in to comment.