Adds dockerfile
This commit is contained in:
parent
f29937700c
commit
86db1bf616
1 changed files with 21 additions and 0 deletions
21
Dockerfile.Playwright
Normal file
21
Dockerfile.Playwright
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM node:20
|
||||
|
||||
FROM mcr.microsoft.com/playwright:v1.48.0-noble
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Install Playwright browsers
|
||||
RUN npx playwright install chromium --with-deps
|
||||
|
||||
# Install jq
|
||||
RUN apt-get install -y jq
|
||||
|
||||
# Copy the rest of the application code
|
||||
COPY . .
|
||||
Loading…
Reference in a new issue