If you are talking about an Alpine Docker image, then you can define these env variables inside the Dockerfile, as shown below. Here you do not need to go through --login every time. These variables will be automatically available throughout the system.
FROM alpine ENV GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX \ COMPOSER_HOME=/home/deploy/.composer
You can also define your alias, env, etc. Inside / etc / profile and define the ENV inside the Dockerfile, as shown below, to automatically create a profile.
FROM alpine ENV GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXX \ COMPOSER_HOME=/home/deploy/.composer ENV ENV="/etc/profile"
Skyrar
source share