Skip to content

Commit a82037d

Browse files
committed
fix: re-declare ARG VERSION in final stages of multi-stage builds
1 parent 1c18b23 commit a82037d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

container/pyrefly/ContainerFile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG VERSION
55
RUN pip install --no-cache-dir pyrefly==${VERSION}
66

77
FROM python:3.12-slim
8+
ARG VERSION
89
LABEL org.opencontainers.image.version="${VERSION}"
910
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
1011
COPY --from=builder /usr/local/bin/pyrefly /usr/local/bin/pyrefly

container/pyright/ContainerFile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG VERSION
55
RUN npm install -g pyright@${VERSION}
66

77
FROM node:22-slim
8+
ARG VERSION
89
LABEL org.opencontainers.image.version="${VERSION}"
910
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
1011
COPY --from=builder /usr/local/bin/pyright /usr/local/bin/pyright

container/rust-analyzer/ContainerFile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN apt-get update && apt-get install -y curl && \
77
chmod +x /usr/local/bin/rust-analyzer
88

99
FROM debian:bookworm-slim
10+
ARG VERSION
1011
LABEL org.opencontainers.image.version="${VERSION}"
1112
RUN apt-get update && apt-get install -y libgcc-s1 && rm -rf /var/lib/apt/lists/*
1213
COPY --from=builder /usr/local/bin/rust-analyzer /usr/local/bin/rust-analyzer

container/typescript/ContainerFile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG VERSION
55
RUN npm install -g typescript-language-server@${VERSION} typescript
66

77
FROM node:22-slim
8+
ARG VERSION
89
LABEL org.opencontainers.image.version="${VERSION}"
910
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
1011
COPY --from=builder /usr/local/bin/typescript-language-server /usr/local/bin/typescript-language-server

0 commit comments

Comments
 (0)