chore(docker): use docker cache mount for pip install step
This commit is contained in:
@@ -9,7 +9,8 @@ WORKDIR /app
|
|||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
|
|
||||||
# Install dependencies to a target directory
|
# Install dependencies to a target directory
|
||||||
RUN pip install --no-cache-dir --no-deps --disable-pip-version-check --target=/app/site-packages -r requirements.txt
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
|
pip install --no-cache-dir --no-deps --disable-pip-version-check --target=/app/site-packages -r requirements.txt
|
||||||
|
|
||||||
# Use Alpine as the base image for a much smaller footprint
|
# Use Alpine as the base image for a much smaller footprint
|
||||||
FROM python:3.13-slim
|
FROM python:3.13-slim
|
||||||
|
|||||||
Reference in New Issue
Block a user