Skip to content

Commit

Permalink
make: replaced chrome dependecy
Browse files Browse the repository at this point in the history
- bump steps version
  • Loading branch information
aeri committed Jul 24, 2024
1 parent 18fe12f commit c1a09c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:

steps:
- name: ✅ Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: ⚙️ Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: ❎ Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: 🐳 Log in to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: 🚀 Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-slim
FROM node:20-slim

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

Expand All @@ -8,12 +8,8 @@ RUN apt-get update && apt-get install -y \
ca-certificates \
--no-install-recommends

RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -

RUN echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list

RUN apt-get update && apt-get install -y \
google-chrome-stable \
chromium \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -25,4 +21,4 @@ COPY ./web-service .

EXPOSE 3000

CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit c1a09c1

Please sign in to comment.