Dockerfile 832 B

123456789101112131415161718192021222324252627
  1. ARG VARIANT="nightly-bookworm-slim"
  2. FROM rustlang/rust:${VARIANT}
  3. ENV DEBIAN_FRONTEND=noninteractive
  4. # Install required system libraries and NPM
  5. # Reference: https://dioxuslabs.com/learn/0.6/contributing/#before-you-contribute
  6. RUN apt-get update -qq \
  7. && apt-get install -y -qq \
  8. libgdk3.0-cil \
  9. libatk1.0-dev \
  10. libcairo2-dev \
  11. libpango1.0-dev \
  12. libgdk-pixbuf2.0-dev \
  13. libsoup-3.0-dev \
  14. libjavascriptcoregtk-4.1-dev \
  15. libwebkit2gtk-4.1-dev \
  16. npm \
  17. && rm -rf /var/lib/apt/lists/*
  18. # Set a shared folder for pre-installed browsers
  19. ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
  20. # Temporarily install Playwright globally to install the browsers and their dependencies
  21. RUN npm install -g @playwright/test && \
  22. npx playwright install --with-deps && \
  23. npm uninstall -g @playwright/test