Skip to content

Commit

Permalink
ci(monorepo): 👷 one more attempt...
Browse files Browse the repository at this point in the history
  • Loading branch information
a-luna committed Jul 4, 2023
1 parent 64f8fdd commit 5640315
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/portfolio/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM node:18-alpine AS build

WORKDIR /mono

RUN npm i -g pnpm
COPY --from=base . .

RUN pnpm install
RUN pnpm -r build
COPY --from=base . .
RUN pnpm --filter=@a-luna/shared-ui install
RUN pnpm --filter=@a-luna/shared-ui run build
RUN pnpm --filter=@a-luna/portfolio install
RUN pnpm --filter=@a-luna/portfolio run build

FROM node:18-alpine AS pruned

WORKDIR /mono
RUN npm i -g pnpm

COPY --from=build . .
RUN mkdir pruned && pnpm --filter=@a-luna/portfolio deploy --prod pruned

Expand Down

0 comments on commit 5640315

Please sign in to comment.