Skip to content

Commit

Permalink
🔧 run tests as not root
Browse files Browse the repository at this point in the history
  • Loading branch information
willpower232 committed Dec 1, 2023
1 parent 863b511 commit 253fd1b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ RUN curl -sS https://getcomposer.org/installer | php \

WORKDIR /package

COPY composer.json ./
RUN adduser -D -g '' dev

RUN chown dev -R /package

USER dev

COPY --chown=dev composer.json ./

ARG LARAVEL=8
RUN composer require illuminate/support ^$LARAVEL.0

COPY src src
COPY config config
COPY tests tests
COPY phpunit.xml ./
COPY --chown=dev src src
COPY --chown=dev config config
COPY --chown=dev tests tests
COPY --chown=dev phpunit.xml ./

RUN composer test

0 comments on commit 253fd1b

Please sign in to comment.