mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 17:09:39 +01:00
Add php 8.1 alpine version
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
10
.github/workflows/manual.yaml
vendored
10
.github/workflows/manual.yaml
vendored
@@ -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
|
||||
@@ -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
|
||||
|
||||
21
src/docker/8.1/Dockerfile.alpine
Normal file
21
src/docker/8.1/Dockerfile.alpine
Normal 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/
|
||||
Reference in New Issue
Block a user