diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 09096f9..3d180fc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -36,7 +36,7 @@ jobs: - name: Build and Push uses: docker/build-push-action@v2 with: - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 371bc58..40805ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /app COPY package*.json ./ # Install dependencies -RUN apk update; apk add chromium; npm install +RUN apk update; apk add chromium & npm i --verbose & wait # Copy the rest of the application code COPY . . diff --git a/GitHub.js b/GitHub.js index 3747151..150dc82 100644 --- a/GitHub.js +++ b/GitHub.js @@ -2,7 +2,10 @@ const puppeteer = require("puppeteer"); class GitHub { async fetchActivity(username, days) { - const browser = await puppeteer.launch({ executablePath: '/usr/bin/chromium-browser', args: [ '--disable-gpu', '--disable-setuid-sandbox', '--no-sandbox', '--no-zygote' ] }); + const browser = await puppeteer.launch({ + executablePath: '/usr/bin/chromium-browser', + args: ['--disable-gpu', '--disable-setuid-sandbox', '--no-sandbox', '--no-zygote'] + }); const page = await browser.newPage(); await page.goto(`https://github.com/${username}`);