PWA - patched deps
This commit is contained in:
6
playwright-service/Dockerfile
Normal file
6
playwright-service/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.49.0-jammy
|
||||
WORKDIR /app
|
||||
RUN npm init -y && npm install playwright
|
||||
COPY server.js .
|
||||
EXPOSE 3000
|
||||
CMD ["node", "server.js"]
|
||||
10
playwright-service/server.js
Normal file
10
playwright-service/server.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { chromium } = require('playwright');
|
||||
(async () => {
|
||||
const server = await chromium.launchServer({
|
||||
port: 3000,
|
||||
headless: true,
|
||||
args: ['--disable-gpu', '--no-sandbox', '--disable-dev-shm-usage']
|
||||
});
|
||||
console.log('Browser Server running on port 3000...');
|
||||
await new Promise(() => {});
|
||||
})();
|
||||
Reference in New Issue
Block a user