mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: simplify turbo config, use it for develop + build (#65526)
This commit is contained in:
committed by
GitHub
parent
7f44e71852
commit
f940f2beee
@@ -22,14 +22,12 @@ RUN pnpm config set dedupe-peer-dependents false
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN cd api && pnpm prisma generate
|
||||
|
||||
# The api needs to source curriculum.json and build:curriculum relies on the
|
||||
# The api needs to source curriculum.json and the build process relies on the
|
||||
# following env vars.
|
||||
ARG SHOW_UPCOMING_CHANGES=false
|
||||
ENV SHOW_UPCOMING_CHANGES=$SHOW_UPCOMING_CHANGES
|
||||
|
||||
RUN pnpm turbo compile
|
||||
RUN pnpm build:curriculum
|
||||
RUN pnpm -F=api build
|
||||
RUN pnpm turbo -F=@freecodecamp/api build
|
||||
|
||||
FROM node:24-bookworm AS deps
|
||||
RUN apt-get update && apt-get install -y jq
|
||||
|
||||
Reference in New Issue
Block a user