build(sidecar): use npm ci with lockfile for reproducible installs
Fold prod's genuinely-better Dockerfile into the repo so a whole-tree prod deploy loses nothing: copy package-lock.json and run npm ci instead of npm install. The repo lockfile already contains pdfkit, so this resolves cleanly.
This commit is contained in:
1 parent
6d9dc5dc8a
commit
93d188a968
1 file changed
+2
-2
@@ -13,8 +13,8 @@ FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json ./
|
||||
RUN npm install --omit=dev
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
COPY src/ ./src/
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
Reference in new issue
Block a user