summaryrefslogtreecommitdiffstats
path: root/docker-files/alpine.Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker-files/alpine.Dockerfile')
-rw-r--r--docker-files/alpine.Dockerfile10
1 files changed, 9 insertions, 1 deletions
diff --git a/docker-files/alpine.Dockerfile b/docker-files/alpine.Dockerfile
index a7624b4b..f6b8982c 100644
--- a/docker-files/alpine.Dockerfile
+++ b/docker-files/alpine.Dockerfile
@@ -17,6 +17,11 @@ ARG PYTHON_VERSION=3.11
# Base layer to be used for building dependencies and the release images
FROM alpine:${IMAGE_VERSION} as base
+# Upgrade the system
+RUN apk update \
+ && apk upgrade --no-cache
+
+# Install the minimal set of packages
RUN apk add --no-cache \
python3 \
curl \
@@ -52,6 +57,9 @@ RUN apk add --no-cache \
libffi-dev \
openssl-dev
+RUN python${PYTHON_VERSION} -m venv venv-build
+RUN /venv-build/bin/python${PYTHON_VERSION} -m pip install --upgrade pip
+
RUN python${PYTHON_VERSION} -m venv --without-pip venv
COPY requirements.txt docker-requirements.txt webui-requirements.txt optional-requirements.txt ./
@@ -120,4 +128,4 @@ FROM full as dev
# Forward access and error logs to Docker's log collector
RUN ln -sf /dev/stdout /tmp/glances-root.log \
- && ln -sf /dev/stderr /var/log/error.log \
+ && ln -sf /dev/stderr /var/log/error.log \ No newline at end of file