FROM mcr.microsoft.com/playwright:v1.61.0-noble WORKDIR /app # Optimize caching by installing layers sequentially COPY package*.json ./ RUN npm install --production COPY . . # Expose mandatory Hugging Face port allocations EXPOSE 7860 ENV PORT=7860 ENV NODE_ENV=production # Keep this to skip fresh downloads since it's already in the 1.61.0 image ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 CMD ["node", "server.js"]