Skip to content

Commit d3c4be3

Browse files
authored
Redefine args earlier
1 parent 27a7032 commit d3c4be3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ ENV TARGETARCH=${TARGETARCH:-amd64}
5252
FROM base-$TARGETARCH AS final
5353
COPY --from=base / /
5454

55+
# Reset args in last layer
56+
ARG BIOCONDUCTOR_VERSION=3.22
57+
ARG BIOCONDUCTOR_PATCH=4
58+
ARG BIOCONDUCTOR_DOCKER_VERSION=${BIOCONDUCTOR_VERSION}.${BIOCONDUCTOR_PATCH}
59+
5560
LABEL name="bioconductor/bioconductor_docker" \
5661
version=$BIOCONDUCTOR_DOCKER_VERSION \
5762
url="https://github.com/Bioconductor/bioconductor_docker" \
@@ -60,11 +65,6 @@ LABEL name="bioconductor/bioconductor_docker" \
6065
description="Bioconductor docker image with system dependencies to install all packages." \
6166
license="Artistic-2.0"
6267

63-
# Reset args in last layer
64-
ARG BIOCONDUCTOR_VERSION=3.22
65-
ARG BIOCONDUCTOR_PATCH=4
66-
ARG BIOCONDUCTOR_DOCKER_VERSION=${BIOCONDUCTOR_VERSION}.${BIOCONDUCTOR_PATCH}
67-
6868
# Set automatically when building with --platform
6969
ARG TARGETPLATFORM
7070
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}

0 commit comments

Comments
 (0)