reviewbot

Source code for the is-a.dev r...
Log | Files | Refs | Activity | README | LICENSE

commit 078f7f4ae9fc8212e944206346028732ddb2c1e3
parent f2667d64d0b1b952b282547fc1150669f3321d92
Author: iostpa <iostpa@iostpa.com>
Date:   Wed, 29 Jul 2026 12:22:22 +0300

fix: Dockerfile wasn't fine, production wise

Diffstat:
MDockerfile | 29++++++-----------------------
1 file changed, 6 insertions(+), 23 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,24 +1,7 @@ -# taken from https://depot.dev/docs/container-builds/optimal-dockerfiles/node-pnpm-dockerfile with some modifications -# syntax=docker/dockerfile:1 -FROM node:lts AS build -RUN corepack enable -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" +FROM ghcr.io/pnpm/pnpm:11 +RUN pnpm runtime set node 22 -g WORKDIR /app -COPY pnpm-lock.yaml ./ -RUN --mount=type=cache,target=/pnpm/store \ - pnpm fetch -COPY package.json ./ -RUN pnpm approve-builds --all -RUN --mount=type=cache,target=/pnpm/store \ - pnpm install --frozen-lockfile --prod --offline COPY . . -FROM node:lts AS runtime -RUN groupadd -g 1001 appgroup && \ - useradd -u 1001 -g appgroup -m -d /app -s /bin/false appuser -WORKDIR /app -COPY --from=build --chown=appuser:appgroup /app ./ -ENV NODE_ENV=production \ - NODE_OPTIONS="--enable-source-maps" -USER appuser -ENTRYPOINT ["pnpm", "run", "server"]- \ No newline at end of file +RUN pnpm approve-builds --all +RUN pnpm install --frozen-lockfile +CMD ["pnpm", "run", "server"]+ \ No newline at end of file
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror