Docker: How to build a functional Dockerfile
See original GitHub issueI’m trying to understand how to run PlaywrightSharp in a docker container. I started with the basic, the Net Core image and got:
PlaywrightSharp.PlaywrightSharpException: 'Host system is missing dependencies!
Missing libraries are:
libgobject-2.0.so.0
libglib-2.0.so.0
libnss3.so
libnssutil3.so
libsmime3.so
libnspr4.so
libatk-1.0.so.0
libatk-bridge-2.0.so.0
libx11.so.6
libx11-xcb.so.1
libxcb.so.1
libcups.so.2
libdbus-1.so.3
libgio-2.0.so.0
libexpat.so.1
libdrm.so.2
libxkbcommon.so.0
libxcomposite.so.1
libxdamage.so.1
libxext.so.6
libxfixes.so.3
libxrandr.so.2
libgtk-3.so.0
libgdk-3.so.0
libpango-1.0.so.0
libcairo.so.2
libgdk_pixbuf-2.0.so.0
libgbm.so.1
libasound.so.2
libatspi.so.0
I know documentation on this topic is missing, but I would like wich is the best way to start:
Option A: The Playwright image and install Net Core dependencies Option B: The Net Core image and install Playwright dependencies
I took a look at the Dockerfile from the Playwright project but could not make it work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:16 (4 by maintainers)
Top Results From Across the Web
docker build
The docker build command builds Docker images from a Dockerfile and a "context". A build's context is the set of files located in...
Read more >Docker Build: A Beginner's Guide to Building Docker Images
With Dockerfile written, you can build the image using the following command: $ docker build . We can see the image we just...
Read more >How To Build Docker Image [Comprehensive Beginners ...
Build Docker Image Using Dockerfile · Step 1: Create the required Files and folders · Step 2: Create a sample HTML file &...
Read more >How to Build an Image with the Dockerfile
We'll create a directory called my_image in our home directory, use it as our working directory, and place the Dockerfile in there:
Read more >What is a Dockerfile? A Step-by-Step Guide [2023 Updated]
To create a Dockerfile, set up Docker and Docker Hub. Create the original Docker container and then create a file on it. Make...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Our client only allows Debian images in their k8s, they require a gRPC service to capture PDFs from one of their in-house developed web app. This is the complete Docker file, works with both asp.net core 3.1 and 5.0. For Playwright 0.162.0 and Chromium only.
And this is for Playwright 0.191 on Net 5. It´s a little different since the platform runtimes are copied at build time.