From 0652152f2cb9faac25d31cba9f374db4ddd86777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?= <31509435+aleksasiriski@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:14:08 +0200 Subject: [PATCH 1/2] build(Dockerfile): switch to distroless --- docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index aef5562b..5b88224b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,11 +1,13 @@ -FROM cgr.dev/chainguard/node-lts:latest +FROM gcr.io/distroless/nodejs22-debian12:nonroot + +WORKDIR /app ENV NODE_ENV=production -COPY --chown=node:node ["package.json", "build/", "./"] +COPY ["package.json", "build/", "./"] CMD [ "index.js" ] EXPOSE 3000 -LABEL org.opencontainers.image.source="https://github.com/hearchco/frontend" \ No newline at end of file +LABEL org.opencontainers.image.source="https://github.com/hearchco/frontend" From fab330c83d6bb81198e7da57e904018c0d8db61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksa=20Siri=C5=A1ki?= <31509435+aleksasiriski@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:14:17 +0200 Subject: [PATCH 2/2] build(Dockerfile): add armv7 support --- .github/workflows/dockercicd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockercicd.yml b/.github/workflows/dockercicd.yml index e5063a62..5a599358 100644 --- a/.github/workflows/dockercicd.yml +++ b/.github/workflows/dockercicd.yml @@ -46,7 +46,7 @@ jobs: # setup docker (arm64) - uses: docker/setup-qemu-action@v3 with: - platforms: arm64 + platforms: arm64,arm - uses: docker/setup-buildx-action@v3 @@ -75,3 +75,4 @@ jobs: platforms: |- linux/amd64 linux/arm64 + linux/arm/v7