adt-apjc / YAP

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

YAP is failing to compile on MAC M1 #166

Closed marumer closed 11 months ago

marumer commented 11 months ago

The workaround deployed in the backend Dockerfile to run Puppeteer, preclude docker compose build on MAC with M1 processor.

# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install gnupg wget -y && \
    wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
    sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
    apt-get update && \
    apt-get install google-chrome-stable -y --no-install-recommends && \
    rm -rf /var/lib/apt/lists/*

![Uploading image.png…]()