Skip to content

Commit 57515e2

Browse files
🐳 Just changing Dockerfile.docs with build comments
1 parent 9ff67f2 commit 57515e2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile.docs

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ EXPOSE 3000
2929
CMD [ -d "node_modules" ] && npm run start -- --host 0.0.0.0 --poll 1000 || pnpm install && pnpm run start -- --host 0.0.0.0 --poll 1000
3030

3131
# Stage 2b: Production build mode.
32-
FROM base AS prod
32+
FROM base AS preprod
3333
## Set the working directory to `/opt/docusaurus`.
3434
WORKDIR /opt/docusaurus
3535

36+
## This is in case someone needs to build the lock file
37+
#RUN apt install python-is-python3 g++ make -y
38+
3639
COPY docs/package.json /opt/docusaurus/package.json
3740
COPY docs/package-lock.json /opt/docusaurus/package-lock.json
3841

42+
FROM preprod AS prod
43+
3944
## Install dependencies with `--immutable` to ensure reproducibility.
4045
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
4146

0 commit comments

Comments
 (0)