Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ RUN mkdir -p /logs
# Set working directory
WORKDIR /app

# Install Python dependencies with build tools, then remove build tools in
# the same layer so they do not bloat the final image.
# Install Python dependencies with build tools, then remove build tools and
# pip in the same layer. pip is not needed at runtime and its vendored
# packages (urllib3, msgpack, setuptools) trigger image CVE scans.
COPY requirements.txt .
RUN apk add --no-cache --virtual .build-deps \
gcc \
Expand All @@ -34,6 +35,7 @@ RUN apk add --no-cache --virtual .build-deps \
cmake \
make && \
pip install --no-cache-dir -r requirements.txt && \
pip uninstall -y pip && \
apk del .build-deps

# Copy the application code
Expand Down
Loading