Skip to content

Commit

Permalink
related to issue #201 (avoid to hardcode PHPLint version
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Feb 5, 2024
1 parent 4eb6326 commit 10afb55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# syntax=docker/dockerfile:1.4
ARG PHP_VERSION=8.2
ARG PHPLINT_VERSION=9.0.7
ARG PHP_VERSION=8.0

FROM php:${PHP_VERSION}-cli-alpine

Expand All @@ -17,7 +16,7 @@ USER appuser
# Install Composer v2 then overtrue/phplint package
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN composer global require --no-progress overtrue/phplint ${PHPLINT_VERSION}
RUN composer global require --no-progress overtrue/phplint 9.0.x-dev

# Following recommendation at https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir

Expand Down

0 comments on commit 10afb55

Please sign in to comment.