ci(docker): changes to dockerfile to make builds faster

This commit is contained in:
Amruth Pillai
2022-03-05 23:18:47 +01:00
parent 37f0ab3bca
commit 00505a9e5d
4 changed files with 19 additions and 24 deletions

View File

@ -4,9 +4,7 @@ RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
WORKDIR /app
COPY .npmrc package.json pnpm-lock.yaml ./
ENV HUSKY 0
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
@ -20,12 +18,9 @@ RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
WORKDIR /app
COPY --from=builder /app/package.json .
COPY --from=builder /app/pnpm-lock.yaml .
COPY --from=builder /app/package.json /app/pnpm-lock.yaml ./
COPY --from=builder /app/dist ./dist
ENV HUSKY 0
RUN pnpm install --frozen-lockfile --prod
# Expose App