fix: monorepo install error on backend docker

This commit is contained in:
Rotimi Best
2025-06-03 09:52:19 +01:00
committed by GitHub
parent 6c10bc8ee9
commit 9eb7b01587
+5 -2
View File
@@ -16,6 +16,9 @@ ARG SMTP_PORT
RUN mkdir /app
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm
# Install chrome stable from sources, then remove it. Why? The
# npm install of `puppeteer` brings its own bundle chromium build,
# and puppeteer releases are only guaranteed to work with that version.
@@ -42,7 +45,7 @@ WORKDIR /app
# wget https://github.com/samuelngs/apple-emoji-linux/releases/download/ios-15.4/AppleColorEmoji.ttf -O ~/.fonts/AppleColorEmoji.ttf
COPY ./package.json /app
RUN npm install --frozen-lockfile
RUN pnpm install
COPY . /app
# Set environment variables from build args
@@ -62,4 +65,4 @@ ENV NODE_ENV=production \
EXPOSE 3002
CMD ["node", "server.js"]
CMD ["node", "server.js"]