fix: monorepo install error on backend docker
This commit is contained in:
@@ -16,6 +16,9 @@ ARG SMTP_PORT
|
|||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install pnpm
|
||||||
|
RUN npm install -g pnpm
|
||||||
|
|
||||||
# Install chrome stable from sources, then remove it. Why? The
|
# Install chrome stable from sources, then remove it. Why? The
|
||||||
# npm install of `puppeteer` brings its own bundle chromium build,
|
# npm install of `puppeteer` brings its own bundle chromium build,
|
||||||
# and puppeteer releases are only guaranteed to work with that version.
|
# 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
|
# wget https://github.com/samuelngs/apple-emoji-linux/releases/download/ios-15.4/AppleColorEmoji.ttf -O ~/.fonts/AppleColorEmoji.ttf
|
||||||
|
|
||||||
COPY ./package.json /app
|
COPY ./package.json /app
|
||||||
RUN npm install --frozen-lockfile
|
RUN pnpm install
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
# Set environment variables from build args
|
# Set environment variables from build args
|
||||||
@@ -62,4 +65,4 @@ ENV NODE_ENV=production \
|
|||||||
|
|
||||||
EXPOSE 3002
|
EXPOSE 3002
|
||||||
|
|
||||||
CMD ["node", "server.js"]
|
CMD ["node", "server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user