We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff67f2 commit 57515e2Copy full SHA for 57515e2
Dockerfile.docs
@@ -29,13 +29,18 @@ EXPOSE 3000
29
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
30
31
# Stage 2b: Production build mode.
32
-FROM base AS prod
+FROM base AS preprod
33
## Set the working directory to `/opt/docusaurus`.
34
WORKDIR /opt/docusaurus
35
36
+## This is in case someone needs to build the lock file
37
+#RUN apt install python-is-python3 g++ make -y
38
+
39
COPY docs/package.json /opt/docusaurus/package.json
40
COPY docs/package-lock.json /opt/docusaurus/package-lock.json
41
42
+FROM preprod AS prod
43
44
## Install dependencies with `--immutable` to ensure reproducibility.
45
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
46
0 commit comments