summaryrefslogtreecommitdiffstats
path: root/docker-files/alpine.Dockerfile
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2024-04-30 10:35:45 +0200
committernicolargo <nicolashennion@gmail.com>2024-04-30 10:35:45 +0200
commit88fee9bc8ed2882275b3363d9fcdfc260afbeb7a (patch)
treedfba01f8b62db9a777d36492f847cdc5b0243766 /docker-files/alpine.Dockerfile
parentde69635d41efa38428e0779e2467632d2cafdede (diff)
Use buildx instead of build for local container images
Diffstat (limited to 'docker-files/alpine.Dockerfile')
-rw-r--r--docker-files/alpine.Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker-files/alpine.Dockerfile b/docker-files/alpine.Dockerfile
index 14e23c13..d7a2dab1 100644
--- a/docker-files/alpine.Dockerfile
+++ b/docker-files/alpine.Dockerfile
@@ -67,6 +67,7 @@ COPY requirements.txt docker-requirements.txt webui-requirements.txt optional-re
##############################################################################
# BUILD: Install the minimal image deps
FROM build as buildMinimal
+ARG PYTHON_VERSION
RUN /venv-build/bin/python${PYTHON_VERSION} -m pip install --target="/venv/lib/python${PYTHON_VERSION}/site-packages" \
-r requirements.txt \
@@ -76,6 +77,7 @@ RUN /venv-build/bin/python${PYTHON_VERSION} -m pip install --target="/venv/lib/p
##############################################################################
# BUILD: Install all the deps
FROM build as buildFull
+ARG PYTHON_VERSION
# Required for optional dependency cassandra-driver
ARG CASS_DRIVER_NO_CYTHON=1
@@ -91,10 +93,11 @@ RUN /venv-build/bin/python${PYTHON_VERSION} -m pip install --target="/venv/lib/p
##############################################################################
# Base image shared by all releases
FROM base as release
+ARG PYTHON_VERSION
# Copy source code and config file
COPY ./docker-compose/glances.conf /etc/glances/glances.conf
-COPY /glances /app/glances
+COPY ./glances/. /app/glances/
# Copy binary and update PATH
COPY docker-bin.sh /usr/local/bin/glances