reduce RUN cmd

Signed-off-by: Karl Haworth <karl.haworth@aa.com>
This commit is contained in:
Karl Haworth
2024-08-14 10:59:23 -04:00
parent 905a114d96
commit 393daf4467
@@ -14,11 +14,11 @@
# Build Python environment in a separate builder stage
FROM cgr.dev/chainguard/python:latest-dev as python-builder
RUN --mount=type=cache,target=/home/nonroot/.cache/pip,uid=65532,gid=65532 \
python3 -m venv /home/nonroot/venv
ENV PATH=/venv/bin:$PATH
RUN /home/nonroot/venv/bin/pip install mkdocs-techdocs-core==1.3.3
RUN --mount=type=cache,target=/home/nonroot/.cache/pip,uid=65532,gid=65532 \
python3 -m venv /home/nonroot/venv && \
/home/nonroot/venv/bin/pip install mkdocs-techdocs-core==1.3.3
# Build Node environment in a separate builder stage
FROM cgr.dev/chainguard/wolfi-base:latest as node-builder