ci(docker): attempt to fix production deploy, with env management

This commit is contained in:
Amruth Pillai
2022-03-05 14:36:38 +01:00
parent a4983ac6bc
commit 37f0ab3bca
5 changed files with 29 additions and 199 deletions

View File

@ -6,6 +6,8 @@ WORKDIR /app
COPY .npmrc package.json pnpm-lock.yaml ./
ENV HUSKY 0
RUN pnpm install --frozen-lockfile
COPY . .
@ -22,6 +24,8 @@ COPY --from=builder /app/package.json .
COPY --from=builder /app/pnpm-lock.yaml .
COPY --from=builder /app/dist ./dist
ENV HUSKY 0
RUN pnpm install --frozen-lockfile --prod
# Expose App