File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 22# Example build command:
33# podman build -t puppeteer -f puppeteer.containerfile
44#
5- # Last change: 2025-01-19 Alpine 3.21.2 Node 23.6.0
5+ # Example run command:
6+ # podman run --rm --init -v $(pwd):/app -w /app --userns=keep-id -it puppeteer xvfb-run npm test
7+ # Or:
8+ # podman run --rm --init -v $(pwd):/app -w /app --user node2 --userns=keep-id:uid=1001,gid=1001 -it puppeteer xvfb-run npm test
9+ #
10+ # Last change: 2025-01-20 Alpine 3.21.2 Node 23.6.0
611FROM docker.io/node:alpine
712
813# If set to values different than the ones used by Node.js (1000:1000 at the time of writing),
914# `node2` group and user will be added and container can be run as that user:
1015# podman run --user node2 -rm -it puppeteer
11- ARG UID=
12- ARG GID=
16+ ARG UID=1000
17+ ARG GID=1000
1318
1419USER root
1520
You can’t perform that action at this time.
0 commit comments