From 59a04ab9b040953b24c6ed484afddcec0724e7c0 Mon Sep 17 00:00:00 2001 From: a Date: Sat, 1 Mar 2025 15:28:11 -0600 Subject: [PATCH] run as user --- ts/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ts/Dockerfile b/ts/Dockerfile index 4e09c0f..867d98c 100644 --- a/ts/Dockerfile +++ b/ts/Dockerfile @@ -6,15 +6,17 @@ RUN corepack yarn install FROM node:23 -WORKDIR /app - RUN npm i -g tsx +USER 1000:1000 +WORKDIR /app + COPY --from=builder /build/node_modules node_modules -COPY tsconfig.json package.json cli . +COPY tsconfig.json package.json cli .yarnrc.yml yarn.lock . COPY src src # make sure it passes compilation before compiling RUN corepack yarn tsc + ENTRYPOINT ["/app/cli"]