mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 03:21:07 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
faabc08aa9 |
+8
-2
@@ -11,9 +11,15 @@ COPY database /var/www/html/database
|
|||||||
|
|
||||||
COPY composer.* /var/www/html/
|
COPY composer.* /var/www/html/
|
||||||
|
|
||||||
RUN composer config --global http-basic.repo.meshkee.com $REGISTRY_USER_NAME $REGISTRY_PASSWORD
|
# RUN composer config --global http-basic.repo.meshkee.com $REGISTRY_USER_NAME $REGISTRY_PASSWORD
|
||||||
|
|
||||||
RUN composer install --no-scripts
|
# RUN composer install --no-scripts
|
||||||
|
|
||||||
|
RUN --mount=type=secret,id=gitea_token \
|
||||||
|
pw=$(cat /run/secrets/gitea_token) && \
|
||||||
|
echo "{\"http-basic\":{\"git.meshkee.com\":{\"username\":\"zahra.mousavi\",\"password\":\"$pw\"}}}" > /tmp/composer_auth.json && \
|
||||||
|
export COMPOSER_AUTH="$(cat /tmp/composer_auth.json)" && \
|
||||||
|
composer install --optimize-autoloader --no-dev --no-scripts
|
||||||
|
|
||||||
COPY . /var/www/html
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user