Skip to content

Conversation

@dezhishen
Copy link
Member

@dezhishen dezhishen commented Aug 11, 2025

Move the build parameter BASE_IMAGE_TAG at the beginning of the file.

If not, docker build cannot be run.

…he file.

Signed-off-by: 我怎么就不是一只猫呢? <26274059+dezhishen@users.noreply.github.com>
@dezhishen dezhishen requested a review from Copilot August 11, 2025 06:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a Docker build issue by moving the BASE_IMAGE_TAG argument declaration to the beginning of the Dockerfile. The change ensures that the build parameter is available before it's referenced in the FROM instruction.

Key changes:

  • Relocates the ARG BASE_IMAGE_TAG=base declaration and its comment from after the builder stage to the very beginning of the Dockerfile


### Default image is base. You can add other support by modifying BASE_IMAGE_TAG. The following parameters are supported: base (default), aria2, ffmpeg, aio
ARG BASE_IMAGE_TAG=base

Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ARG BASE_IMAGE_TAG should be declared immediately before this FROM instruction, not at the beginning of the file. In Docker, ARG variables declared before the first FROM are only available in FROM instructions, but not in subsequent build stages. If BASE_IMAGE_TAG needs to be used elsewhere in the Dockerfile after this FROM instruction, it should be redeclared in that stage.

Suggested change
ARG BASE_IMAGE_TAG=base

Copilot uses AI. Check for mistakes.
@dezhishen dezhishen closed this Aug 11, 2025
@dezhishen
Copy link
Member Author

duplicati with #1036

@jyxjjj jyxjjj deleted the dezhishen-patch-1 branch October 14, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants