Skip to content

Commit

Permalink
try node 21
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Feb 25, 2024
1 parent 6fdd214 commit ccc40e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18 AS base
FROM node:21 AS base

ARG TARGETPLATFORM

Expand All @@ -11,9 +11,9 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json package-lock.json ./
RUN npm ci
RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
npm install -D @swc/cli @swc/core-linux-arm-gnueabihf @next/swc-linux-arm-gnueabihf ; \
fi
# 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 ccc40e6

Please sign in to comment.