Skip to content

Commit

Permalink
build(Dockerfile): switch to distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksasiriski committed Oct 23, 2024
1 parent 52921f7 commit 0652152
Showing 1 changed file with 5 additions and 3 deletions.
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 0652152

Please sign in to comment.