Sign inSign up

blx32/chromium

By blx32

Updated over 2 years ago

Chromium Headless

Image
0

160

blx32/chromium repository overview

Chromium Headless

Teste

Um teste pode ser encontrado em test, use pnpm start para rodar.

Uso

  • Puppeteer
Comando
docker run -d \
  --name chromium \
  --network host \
  --shm-size=1gb \
  --cap-add SYS_ADMIN \
  -v /usr/src/app/chrome.json:/usr/src/app/chrome.json \
  blx32/chromium \
  --no-sandbox \
  --remote-debugging-address=0.0.0.0 \
  --remote-debugging-port=9222

Stack
version: "3.7"

services:
  chromium:
    image: blx32/chromium
    command:
      - --no-sandbox
      - --remote-debugging-address=0.0.0.0
      - --remote-debugging-port=9222
    security_opt:
      - seccomp=/usr/src/app/chrome.json
    ports:
      - { target: 9222, published: 9222, protocol: tcp, mode: host }
    shm_size: 1gb
    cap_add:
      - SYS_ADMIN
    deploy:
      replicas: 1
      placement:
        constraints:
          - node.role == worker
      resources:
        limits:
          cpus: "1"
          memory: 1024M
      restart_policy:
        condition: on-failure
        delay: 5s

Tag summary

Content type

Image

Digest

sha256:c4e6d5e4a

Size

261.2 MB

Last updated

over 2 years ago

docker pull blx32/chromium