Skip to content

Commit 42657de

Browse files
authored
Merge pull request #4 from vfalies/dev
Dev
2 parents a6345f1 + fcd3c7f commit 42657de

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
FROM vfac/envdevphpbase:7.2-alpine
1+
FROM vfac/envdevphpbase:7.2-cli-alpine
22
LABEL maintainer="Vincent Faliès <vincent@vfac.fr>"
33

44
COPY composer.json /php7checker/composer.json
5+
6+
USER root
7+
RUN chown -R vfac:vfac /php7checker
8+
9+
USER vfac
510
RUN cd /php7checker \
6-
&& composer update --lock
11+
&& composer install
712

813
WORKDIR /app
914

10-
ENTRYPOINT [ "/php7checker/vendor/bin/phpcs", "-p", "--standard=PHPCompatibility", "--runtime-set", "testVersion" ]
15+
ENTRYPOINT [ "/php7checker/vendor/bin/phpcs", "-p", "--standard=PHPCompatibility", "--runtime-set", "testVersion" ]

0 commit comments

Comments
 (0)