Skip to content

Commit f897f5b

Browse files
authored
Merge pull request #186 from baksist/master
Update Dockerfile
2 parents 39af9de + 33a4c72 commit f897f5b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
FROM php:8.1-cli-alpine AS builder
22

3-
RUN apk add python3 py3-pip curl
3+
RUN apk add python3 py3-rich curl
44

55
RUN curl -s https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
66

77
RUN alias composer='php /usr/bin/composer'
88

9-
RUN pip install rich
10-
119
COPY . /phpggc
1210

1311
WORKDIR /phpggc
1412

15-
RUN chmod +x phpggc && echo "phar.readonly=0" > $PHP_INI_DIR/php.ini
13+
RUN sed -i '1s|.*|#!/usr/bin/env php|' phpggc && chmod +x phpggc && echo "phar.readonly=0" > $PHP_INI_DIR/php.ini
1614

1715
ENTRYPOINT ["/phpggc/phpggc"]

0 commit comments

Comments
 (0)