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 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"