# Use the official Playwright image which comes with all system dependencies and browsers FROM mcr.microsoft.com/playwright:v1.43.0-jammy # Create and change to the app directory WORKDIR /usr/src/app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the application code COPY . . # Expose the port the app runs on EXPOSE 3000 # Set environment variables ENV NODE_ENV=production ENV PORT=3000 # Start the application CMD [ "node", "proxy.js" ]