forked from shyim/danger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (27 loc) · 655 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (27 loc) · 655 Bytes
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
FROM ghcr.io/shyim/wolfi-php/base:latest
RUN <<EOF
set -eo pipefail
apk add --no-cache \
ca-certificates \
php-8.2 \
php-8.2-mbstring \
php-8.2-ctype \
php-8.2-curl \
php-8.2-intl \
php-8.2-phar \
php-8.2-xml \
php-8.2-xmlreader \
php-8.2-xmlwriter \
php-8.2-dom \
php-8.2-simplexml
mkdir -p /bin
echo "#/bin/sh" > /bin/danger
echo "php /danger.phar \"\$@\"" >> /bin/danger
chmod +x /bin/danger
mkdir -p /app/bin
echo "#/bin/sh" > /app/bin/danger
echo "php /danger.phar \"\$@\"" >> /app/bin/danger
chmod +x /app/bin/danger
EOF
COPY danger.phar /danger.phar
ENTRYPOINT [ "/usr/bin/php", "/danger.phar" ]