trying to fix build error on rpi
This commit is contained in:
parent
3b6beab3ab
commit
a3a50dac8b
@ -1,4 +1,4 @@
|
|||||||
FROM node:20-bookworm
|
FROM arm64v8/node:20-bullseye # Use an ARM-compatible Node.js image
|
||||||
|
|
||||||
# Create application directory
|
# Create application directory
|
||||||
RUN mkdir -p /usr/src/app
|
RUN mkdir -p /usr/src/app
|
||||||
@ -13,6 +13,9 @@ WORKDIR /usr/src/app
|
|||||||
COPY package.json /usr/src/app
|
COPY package.json /usr/src/app
|
||||||
COPY pnpm-lock.yaml /usr/src/app
|
COPY pnpm-lock.yaml /usr/src/app
|
||||||
|
|
||||||
|
# Install build tools
|
||||||
|
RUN apt-get update && apt-get install -y build-essential
|
||||||
|
|
||||||
# Install pnpm
|
# Install pnpm
|
||||||
RUN corepack enable pnpm
|
RUN corepack enable pnpm
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user