Skip to content

Commit

Permalink
fix: Fixed DockerFile
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Mar 28, 2024
1 parent 444ae4c commit fed13ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -2,14 +2,15 @@ FROM node:lts-alpine3.18 as base
WORKDIR /usr/src/wpp-server
ENV NODE_ENV=production PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
COPY package.json ./
RUN yarn set version stable
RUN yarn install --production --pure-lockfile && \
yarn add sharp --ignore-engines && \
yarn cache clean

FROM base as build
WORKDIR /usr/src/wpp-server
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
COPY package.json ./
RUN yarn set version stable
RUN yarn install --production=false --pure-lockfile && \
yarn cache clean
COPY . .
Expand Down

0 comments on commit fed13ec

Please sign in to comment.