FROM node:23.5.0-alpine ENV PORT 4000 # Create app directory RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # Installing dependencies COPY package.json pnpm-lock.yaml ./ # Install dependencies RUN pnpm install --frozen-lockfile # RUN npm install --force # RUN npm install -g npm@latest # RUN npm install # Copying source files COPY . . # Building app RUN pnpm run build EXPOSE 4000 # Running the app CMD ["pnpm", "run", "start"]