Skip to content

Commit

Permalink
add PHP8.3 images for ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBadBassMan committed Sep 24, 2024
1 parent ca93692 commit 4604233
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .docker/php83.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM --platform=linux/amd64 php:8.3-cli-alpine AS build-stage

Check warning on line 1 in .docker/php83.dockerfile

View workflow job for this annotation

GitHub Actions / Publish the Docker image PHP 8.3

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

RUN apk add --update make git

# hadolint ignore=DL3022
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer

RUN mkdir -p /opt/box-project/box
WORKDIR /opt/box-project/box
ADD . /opt/box-project/box
RUN make compile

FROM --platform=linux/amd64 php:8.3-cli-alpine

Check warning on line 13 in .docker/php83.dockerfile

View workflow job for this annotation

GitHub Actions / Publish the Docker image PHP 8.3

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

# hadolint ignore=DL3022
COPY --chmod=755 --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions zlib phar sodium tokenizer filter intl

COPY --chmod=755 --from=build-stage /opt/box-project/box/bin/box.phar /usr/bin/box
# hadolint ignore=DL3022
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer

RUN mkdir -p /local
WORKDIR /local
ENTRYPOINT ["/usr/bin/box"]
25 changes: 25 additions & 0 deletions .docker/php83_xdebug.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM --platform=linux/amd64 php:8.3-cli-alpine as build-stage

Check warning on line 1 in .docker/php83_xdebug.dockerfile

View workflow job for this annotation

GitHub Actions / Publish the Docker image PHP 8.3 (Xdebug)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in .docker/php83_xdebug.dockerfile

View workflow job for this annotation

GitHub Actions / Publish the Docker image PHP 8.3 (Xdebug)

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

RUN apk add --update make git

# hadolint ignore=DL3022
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer

RUN mkdir -p /opt/box-project/box
WORKDIR /opt/box-project/box
ADD . /opt/box-project/box
RUN make compile

FROM --platform=linux/amd64 php:8.3-cli-alpine

Check warning on line 13 in .docker/php83_xdebug.dockerfile

View workflow job for this annotation

GitHub Actions / Publish the Docker image PHP 8.3 (Xdebug)

FROM --platform flag should not use a constant value

FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/amd64" More info: https://docs.docker.com/go/dockerfile/rule/from-platform-flag-const-disallowed/

# hadolint ignore=DL3022
COPY --chmod=755 --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions zlib phar sodium tokenizer filter intl xdebug

COPY --chmod=755 --from=build-stage /opt/box-project/box/bin/box.phar /usr/bin/box
# hadolint ignore=DL3022
COPY --chmod=755 --from=composer/composer:2-bin /composer /usr/bin/composer

RUN mkdir -p /local
WORKDIR /local
ENTRYPOINT ["/usr/bin/box"]
6 changes: 6 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: PHP 8.2 (Xdebug)
docker-file: .docker/php82_xdebug.dockerfile
image-tag: ghcr.io/box-project/box_php82_xdebug
- name: PHP 8.3
docker-file: .docker/php83.dockerfile
image-tag: ghcr.io/box-project/box_php83
- name: PHP 8.3 (Xdebug)
docker-file: .docker/php83_xdebug.dockerfile
image-tag: ghcr.io/box-project/box_php83_xdebug
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 4604233

Please sign in to comment.