Skip to content

Commit

Permalink
Merge pull request #572 from hearchco/as/fix/docker
Browse files Browse the repository at this point in the history
build(Dockerfile): distroless and armv7
  • Loading branch information
aleksasiriski authored Oct 23, 2024
2 parents 52921f7 + fab330c commit 53e53a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dockercicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -75,3 +75,4 @@ jobs:
platforms: |-
linux/amd64
linux/arm64
linux/arm/v7
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
LABEL org.opencontainers.image.source="https://github.com/hearchco/frontend"

0 comments on commit 53e53a1

Please sign in to comment.