diff --git a/Containerfile b/Containerfile index 379dfdb..d2a0c4c 100644 --- a/Containerfile +++ b/Containerfile @@ -29,8 +29,9 @@ FROM python:3.11-slim LABEL maintainer="FlaskPaste" LABEL description="Lightweight secure pastebin REST API" -# Clean base image caches and create non-root user +# Clean base image caches, upgrade system pip/setuptools, create non-root user RUN apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ + && pip install --no-cache-dir --upgrade pip setuptools \ && groupadd -r flaskpaste && useradd -r -g flaskpaste flaskpaste # Copy virtual environment from builder