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