Skip to content

Commit

Permalink
Remove armv7 image
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Apr 14, 2024
1 parent 863d3b0 commit 8717714
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down
5 changes: 4 additions & 1 deletion GitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down

0 comments on commit 8717714

Please sign in to comment.