From 0ea32968856394da8f4a6a6c4b8442f491874a9e Mon Sep 17 00:00:00 2001 From: Albert Date: Mon, 10 Nov 2025 13:56:51 +0000 Subject: [PATCH] refactor: Remove redundant standalone Dockerfile.playwright MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The standalone Dockerfile is no longer needed since we integrated Playwright directly into docker-compose.yml using the official Playwright image. Benefits of removal: - Simpler setup (no build step required) - Less maintenance (one less file to keep updated) - docker-compose.yml approach is more integrated and easier to use The docker-compose service provides the same functionality with: - Same base image (mcr.microsoft.com/playwright:v1.49.1-noble) - Same non-root user execution - Better integration with existing services 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- Dockerfile.playwright | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Dockerfile.playwright diff --git a/Dockerfile.playwright b/Dockerfile.playwright deleted file mode 100644 index 35e1290..0000000 --- a/Dockerfile.playwright +++ /dev/null @@ -1,30 +0,0 @@ -# Dockerfile for Playwright testing environment -# Based on official Playwright Docker image with non-root user setup - -FROM mcr.microsoft.com/playwright:v1.49.1-noble - -# Create a non-root user for running tests -RUN useradd -ms /bin/bash pwuser && \ - mkdir -p /home/pwuser/app && \ - chown -R pwuser:pwuser /home/pwuser - -# Switch to non-root user -USER pwuser - -# Set working directory -WORKDIR /home/pwuser/app - -# Copy package files -COPY --chown=pwuser:pwuser package.json pnpm-lock.yaml ./ - -# Install pnpm globally for the user -RUN npm install -g pnpm - -# Install dependencies -RUN pnpm install --frozen-lockfile - -# Copy the rest of the application -COPY --chown=pwuser:pwuser . . - -# Run Playwright tests -CMD ["pnpm", "exec", "playwright", "test"]