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. Co-authored-by: Stephan Charles <[email protected]> Co-authored-by: Amelia Hernandez <[email protected]> Co-authored-by: Markus Franz <[email protected]> Co-authored-by: Sabrina Hota <[email protected]> Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
1 parent
ad915dda1a
commit
2d4be583ce
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