mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-09 20:12:26 +10:00
ci(docker): changes to dockerfile to make builds faster
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user