feat: added dockerignore, a development docker image and a qa/prod docker image
This commit is contained in:
1 parent
5caa3457aa
commit
1a78935c23
3 files changed
+55
No files matched your search
@@ -0,0 +1,19 @@
|
||||
FROM node:26-slim@sha256:d62f13676d530f7edf97782729df69713c8ccfe6631e7f62f9ccab65968719a8
|
||||
|
||||
# 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"]
|
||||
Reference in new issue
Block a user