Skip to content

Commit

Permalink
Merge pull request #411 from govCMS/feature/DEVOPS-516-composer-no-dev
Browse files Browse the repository at this point in the history
[DEVOPS-516] Add `--no-dev` to composer update
  • Loading branch information
yusufhm authored Jul 26, 2024
2 parents d559055 + 82b269f commit b8e04ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/Dockerfile.govcms
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY scripts/composer/ScriptHandler.php /app/scripts/composer/ScriptHandler.php
ENV COMPOSER_MEMORY_LIMIT=-1

RUN --mount=type=secret,id=composer-auth,dst=/app/auth.json /usr/local/bin/composer validate
RUN --mount=type=secret,id=composer-auth,dst=/app/auth.json /usr/local/bin/composer update -d /app
RUN --mount=type=secret,id=composer-auth,dst=/app/auth.json /usr/local/bin/composer update --no-dev -d /app
RUN --mount=type=secret,id=composer-auth,dst=/app/auth.json /usr/local/bin/composer clearcache

# Add bash aliases to assist with full path executables.
Expand Down
3 changes: 3 additions & 0 deletions .docker/sanitize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ find $APP_DIR/web/libraries/ -type d -name samples -exec rm -rf {} +
find $APP_DIR/web/sites -type d -exec chmod 755 {} +
find $APP_DIR/web/sites -type f -exec chmod 644 {} +
chmod 755 $APP_DIR/web/sites

# Remove unnecessary vendor files.
rm -f $APP_DIR/vendor/symfony/console/Resources/bin/hiddeninput.exe

0 comments on commit b8e04ff

Please sign in to comment.