mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:01:05 +03:30
Update Dockerfile
This commit is contained in:
+8
-2
@@ -11,9 +11,15 @@ COPY database /var/www/html/database
|
||||
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user