feat: playwright docker setup
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
FROM node:18-alpine
|
# Use Node.js with Ubuntu instead of Alpine for better Playwright support
|
||||||
|
FROM mcr.microsoft.com/playwright:v1.40.0-jammy
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy all source files first
|
# Install node dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY maxun-core ./maxun-core
|
COPY maxun-core ./maxun-core
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
@@ -13,6 +15,9 @@ COPY server/tsconfig.json ./server/
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
# Install Playwright browsers and dependencies
|
||||||
|
RUN npx playwright install --with-deps chromium firefox webkit
|
||||||
|
|
||||||
# Expose the backend port
|
# Expose the backend port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user