run as user

This commit is contained in:
a 2025-03-01 15:28:11 -06:00
parent 24cf9db757
commit 59a04ab9b0
No known key found for this signature in database
GPG Key ID: 2F22877AA4DFDADB

View File

@ -6,15 +6,17 @@ RUN corepack yarn install
FROM node:23 FROM node:23
WORKDIR /app
RUN npm i -g tsx RUN npm i -g tsx
USER 1000:1000
WORKDIR /app
COPY --from=builder /build/node_modules node_modules 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 COPY src src
# make sure it passes compilation before compiling # make sure it passes compilation before compiling
RUN corepack yarn tsc RUN corepack yarn tsc
ENTRYPOINT ["/app/cli"] ENTRYPOINT ["/app/cli"]