-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (27 loc) · 861 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM cytopia/phpcs:latest
COPY ./ /YNA
RUN phpcs --config-set installed_paths /YNA && phpcs -i
#COPY entrypoint.sh \
# problem-matcher.json \
# /action/
RUN apk update && apk add curl \
zip \
unzip \
git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY entrypoint.sh \
problem-matcher.json \
/action/
COPY composer.json \
/root/.composer
RUN composer global install
RUN chmod +x /action/entrypoint.sh
ENTRYPOINT ["/action/entrypoint.sh"]
#RUN wget https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.4.2/phpcs.phar -O phpcs \
# && chmod a+x phpcs \
# && mv phpcs /usr/local/bin/phpcs
#COPY ./ /YNA
#RUN phpcs --config-set installed_paths /YNA && phpcs -i
#ADD entrypoint.sh /entrypoint.sh
#RUN phpcs -i
#ENTRYPOINT ["/entrypoint.sh"]