PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 1m9s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 7s
PR Check / Dependency audit (pull_request) Failing after 8s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 5s
20 lines
782 B
Docker
20 lines
782 B
Docker
FROM node:26-slim@sha256:e6bedef217677b276c591795e169840edd9096dbf13f29df8ef8d1856b8820bc
|
|
|
|
# Node no longer bundles pnpm (corepack and pnpm are both absent from this
|
|
# image), so install it. First instruction, so later changes reuse the layer.
|
|
RUN npm install -g pnpm@11.26.0
|
|
|
|
# The bind mount lands here at run time, owned by the image's `node` user.
|
|
# Its uid 1000 matches the host uid, so files it writes stay yours.
|
|
RUN mkdir -p /app && chown node:node /app
|
|
USER node
|
|
WORKDIR /app
|
|
|
|
# Manifests only: this layer and the install below survive every source edit
|
|
# and re-run only when a manifest changes.
|
|
COPY --chown=node:node package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
EXPOSE 3000
|
|
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]
|