@@ -652,29 +652,38 @@ git checkout v4.0.6
652652
653653 :::
654654
655- 11. Use the following command to append the [WireGuard](https://www.wireguard.com/install/) installation instructions to
656- the Dockerfile. You can install more tools and dependencies and configure the image to meet your needs. Add your
657- customizations below the line tagged with the ` Add any other image customizations here` comment in the Dockerfile.
658- Do not edit or add any lines before this tagged comment.
655+ 11. Customize the ` Dockerfile` as needed. You can install tools and dependencies and make other image modifications. Add
656+ your customizations below the line tagged with the ` Add any other image customizations here` comment in the
657+ ` Dockerfile` . Do not edit or add any lines before this tagged comment.
659658
660- ` ` ` bash
661- echo 'RUN sudo zypper refresh && sudo zypper install --non-interactive wireguard-tools' >> Dockerfile
662- ` ` `
659+ :::warning
663660
664- View the newly created file to ensure the instruction to install WireGuard is appended correctly.
661+ When customizing the ` Dockerfile` to add custom binaries, install them into ` /usr/bin` . Do not use ` /usr/local` , as
662+ this directory is mounted from the persistent partition at boot and makes files added during image build unavailable
663+ at runtime.
665664
666- ` ` ` bash
667- cat Dockerfile
665+ :::
666+
667+ For example, you can add the following line to the ` Dockerfile` to install
668+ [WireGuard](https://www.wireguard.com/install/).
669+
670+ ` ` ` dockerfile
671+ ...
672+ ###########################Add any other image customizations here #######################
673+
674+ RUN sudo zypper refresh && sudo zypper install --non-interactive wireguard-tools
668675 ` ` `
669676
670- :::warning
677+ Package installation commands in the ` Dockerfile` must be non-interactive. Ensure you use the appropriate
678+ non-interactive flag for your package manager, for example, ` --non-interactive` for Zypper or ` --yes` for Advanced
679+ Package Tool (APT). Interactive prompts cause the image build to fail. This guidance applies to all dependencies you
680+ add through the ` Dockerfile` .
671681
672- Using the ` -y` option with the ` sudo zypper install` command is critical to successfully build the images. The
673- default behavior for package installations is to prompt the user for permission to install the package. A user
674- prompt will cause the image creation process to fail. This guidance applies to all dependencies you add through the
675- ` Dockerfile` .
682+ View the ` Dockerfile` to ensure the instruction to install WireGuard is appended correctly.
676683
677- :::
684+ ` ` ` bash
685+ cat Dockerfile
686+ ` ` `
678687
67968812. Issue the command below to save your tenant registration token to a local variable. Replace ` [your_token_here]` with
680689 your actual registration token.
0 commit comments