mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
refactor: simplify client Dockerfile (#58099)
This commit is contained in:
committed by
GitHub
parent
cdd6b8700e
commit
c0460c9a81
@@ -29,14 +29,9 @@ ARG SHOW_UPCOMING_CHANGES
|
|||||||
ARG GROWTHBOOK_URI
|
ARG GROWTHBOOK_URI
|
||||||
ARG FREECODECAMP_NODE_ENV
|
ARG FREECODECAMP_NODE_ENV
|
||||||
|
|
||||||
# We're installing specific packages even though it is not strictly necessary -
|
# For simplicity and because node_modules do not make it into the final image,
|
||||||
# pnpm install would work. The idea is to make the dependencies explicit and
|
# we can just install all dependencies here.
|
||||||
# keep them under our control.
|
RUN pnpm install --frozen-lockfile
|
||||||
RUN pnpm config set dedupe-peer-dependents false
|
|
||||||
# Scripts need to be run at this stage (--ignore-scripts cannot be used) because
|
|
||||||
# without them, Gatsby will not install sharp.
|
|
||||||
RUN pnpm install -F=shared -F=client -F=ui -F=browser-scripts -F=challenge-parser \
|
|
||||||
--frozen-lockfile
|
|
||||||
RUN pnpm build:client
|
RUN pnpm build:client
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user