-
-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
604d1da
commit fd4dd96
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM php:8.3-cli-alpine | ||
|
||
RUN php --version | ||
|
||
ENV COMPOSER_HOME /composer | ||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
ENV PATH /composer/vendor/bin:$PATH | ||
ENV PHP_CONF_DIR=/usr/local/etc/php/conf.d | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
RUN echo "memory_limit=-1" > $PHP_CONF_DIR/99_memory-limit.ini \ | ||
&& apk add git \ | ||
&& rm -rf /var/cache/apk/* /var/tmp/* /tmp/* | ||
|
||
ARG PHPSTAN_VERSION | ||
|
||
RUN composer global require phpstan/phpstan:"$PHPSTAN_VERSION" --prefer-dist \ | ||
&& composer clear-cache | ||
|
||
VOLUME ["/app"] | ||
WORKDIR /app | ||
|
||
ENV PHPSTAN_PRO_WEB_PORT=11111 | ||
EXPOSE 11111 | ||
|
||
ENTRYPOINT ["phpstan"] |