From 0e79e5b9cccb117836f39c2dc79ceb691d91d857 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 15 May 2025 11:31:19 -0700 Subject: [PATCH] Add dockerfile --- .dockerignore | 4 ++++ Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..29936490 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +node_modules +android +ios +build diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..def60efb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:20-slim + +# Install pnpm +RUN npm install -g pnpm@latest + +# Set working directory +WORKDIR /app + +# Copy package files +COPY package.json pnpm-lock.yaml ./ + +# Install dependencies +RUN pnpm i + +# Copy the rest of the application +COPY . . + +# Build the application +ENV NODE_OPTIONS=--max_old_space_size=16384 +RUN pnpm run build