Skip to content

Commit

Permalink
Docker - publish images for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 27, 2023
1 parent 604d1da commit fd4dd96
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
image-tag-suffix: "-php8.1"
- docker-file: "./docker/Dockerfile.php.8.2"
image-tag-suffix: "-php8.2"
- docker-file: "./docker/Dockerfile.php.8.3"
image-tag-suffix: "-php8.3"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
image-tag-suffix: "-php8.1"
- docker-file: "./docker/Dockerfile.php.8.2"
image-tag-suffix: "-php8.2"
- docker-file: "./docker/Dockerfile.php.8.3"
image-tag-suffix: "-php8.3"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
27 changes: 27 additions & 0 deletions docker/Dockerfile.php.8.3
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"]

0 comments on commit fd4dd96

Please sign in to comment.