diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..b899232bd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM node:18 + +# Install system dependencies (if necessary) +RUN apt-get update && apt-get install -y \ + libcairo2-dev \ + libpango1.0-dev \ + libjpeg-dev \ + libgif-dev \ + librsvg2-dev \ + build-essential \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +COPY . . + +# Install pnpm and dependencies +RUN npm install -g pnpm +RUN rm -rf node_modules +RUN pnpm config set store-dir ~/.local/share/pnpm/store +RUN pnpm install --frozen-lockfile + +WORKDIR /app/packages/ens-app-v3 + +# Clear Next.js cache +RUN rm -rf .next + +RUN pnpm run build + +EXPOSE 3000 + +CMD ["pnpm", "start"] \ No newline at end of file