Skip to content

Commit

Permalink
Merge pull request #50 from jkaninda/develop
Browse files Browse the repository at this point in the history
Add php 8.1 alpine version
  • Loading branch information
jkaninda authored Aug 14, 2023
2 parents 7b49ffb + b05f91d commit e0ca7da
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ jobs:
tags: |
"${{env.BUILDKIT_IMAGE}}:8.2"
"${{env.BUILDKIT_IMAGE}}:latest"
-
name: Build and push 8.1 alpine
uses: docker/build-push-action@v3
with:
file: "./src/docker/8.1/Dockerfile.alpine"
push: true
platforms: linux/amd64,linux/arm64
tags: |
"${{env.BUILDKIT_IMAGE}}:8.1-alpine"
-
name: Build and push 8.2 alpine
uses: docker/build-push-action@v3
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
with:
file: "./src/docker/8.0/Dockerfile"
push: true
platforms: linux/amd64,linux/arm64
tags: "${{env.BUILDKIT_IMAGE}}:8.0"
-
name: Build and push 8.1
Expand All @@ -72,6 +73,15 @@ jobs:
tags: |
"${{env.BUILDKIT_IMAGE}}:8.2"
"${{env.BUILDKIT_IMAGE}}:latest"
-
name: Build and push 8.1 alpine
uses: docker/build-push-action@v3
with:
file: "./src/docker/8.1/Dockerfile.alpine"
push: true
platforms: linux/amd64,linux/arm64
tags: |
"${{env.BUILDKIT_IMAGE}}:8.1-alpine"
-
name: Build and push 8.2 alpine
uses: docker/build-push-action@v3
Expand Down
21 changes: 21 additions & 0 deletions src/docker/8.1/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM php:8.1-fpm-alpine
ARG WORKDIR=/var/www/html
ENV DOCUMENT_ROOT=${WORKDIR}
ENV LARAVEL_PROCS_NUMBER=1
ARG HOST_UID=1000
ENV USER=www-data

# Install the PHP pdo_mysql extention
RUN docker-php-ext-install pdo_mysql

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Set working directory
WORKDIR $WORKDIR

RUN rm -Rf /var/www/* && \
mkdir -p /var/www/html

ADD src/index.php $WORKDIR/index.php
ADD src/php.ini $PHP_INI_DIR/conf.d/

0 comments on commit e0ca7da

Please sign in to comment.