Skip to content

Commit dce3e62

Browse files
authored
FIX #224: Explanation about ARG scope (#235)
1 parent 59ed827 commit dce3e62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ubuntu/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ ARG base_image_version=noble
33
FROM ubuntu:$base_image_version AS ubuntu-builder-base
44
WORKDIR /app
55

6-
## Not sure why we have to repeat this, but apparently the arg is no
7-
## longer set after FROM.
6+
## An ARG instruction goes out of scope at the end of the build stage
7+
## where it was defined. To use an argument in multiple stages, each stage
8+
## must include the ARG instruction
89
ARG base_image_version=noble
910
ARG lua_version=5.4
1011
ENV DEBIAN_FRONTEND noninteractive

0 commit comments

Comments
 (0)