Merge pull request #50 from jkaninda/develop

Add php 8.1 alpine version
This commit is contained in:
2023-08-15 01:09:07 +02:00
committed by GitHub
3 changed files with 40 additions and 0 deletions

View File

@@ -47,6 +47,15 @@ jobs:
tags: | tags: |
"${{env.BUILDKIT_IMAGE}}:8.2" "${{env.BUILDKIT_IMAGE}}:8.2"
"${{env.BUILDKIT_IMAGE}}:latest" "${{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 name: Build and push 8.2 alpine
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3

View File

@@ -53,6 +53,7 @@ jobs:
with: with:
file: "./src/docker/8.0/Dockerfile" file: "./src/docker/8.0/Dockerfile"
push: true push: true
platforms: linux/amd64,linux/arm64
tags: "${{env.BUILDKIT_IMAGE}}:8.0" tags: "${{env.BUILDKIT_IMAGE}}:8.0"
- -
name: Build and push 8.1 name: Build and push 8.1
@@ -72,6 +73,15 @@ jobs:
tags: | tags: |
"${{env.BUILDKIT_IMAGE}}:8.2" "${{env.BUILDKIT_IMAGE}}:8.2"
"${{env.BUILDKIT_IMAGE}}:latest" "${{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 name: Build and push 8.2 alpine
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3

View File

@@ -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/