From a3a50dac8bc4ed013efbc145b3b703359d19b0a8 Mon Sep 17 00:00:00 2001 From: Torben Haack Date: Thu, 10 Oct 2024 10:06:16 +0200 Subject: [PATCH] trying to fix build error on rpi --- packages/reservation-platform/Containerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/reservation-platform/Containerfile b/packages/reservation-platform/Containerfile index bfa7991..3163c72 100644 --- a/packages/reservation-platform/Containerfile +++ b/packages/reservation-platform/Containerfile @@ -1,4 +1,4 @@ -FROM node:20-bookworm +FROM arm64v8/node:20-bullseye # Use an ARM-compatible Node.js image # Create application directory RUN mkdir -p /usr/src/app @@ -13,6 +13,9 @@ WORKDIR /usr/src/app COPY package.json /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 RUN corepack enable pnpm @@ -31,4 +34,4 @@ RUN pnpm run build EXPOSE 3000 # Start the application -CMD ["/bin/sh", "-c", "if [ ! -f ./db/sqlite.db ]; then pnpm db; fi && pnpm start"] \ No newline at end of file +CMD ["/bin/sh", "-c", "if [ ! -f ./db/sqlite.db ]; then pnpm db; fi && pnpm start"]