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"]