Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ea755a8b7a | |||
| 27f5d781aa | |||
| 4906563838 | |||
| 600700814d | |||
| bd450d140d | |||
| d2672a6801 | |||
| 8e55f0fa15 | |||
| dcf06ebe59 | |||
| a7bee66741 | |||
| be27ed7aee | |||
| 59628f1064 | |||
| ca051d8fe5 | |||
| a9f541eca7 | |||
| 76d74d311f | |||
| df9fd6b16d | |||
| 9d44994dfa | |||
| 3f44416654 | |||
| 7f804d296c | |||
| 256e30c84f |
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@@ -4,7 +4,7 @@ on:
|
||||
push:
|
||||
|
||||
env:
|
||||
IMAGE_TAG: kenayagi/php-fpm-ext:${{ github.ref_name }}
|
||||
IMAGE_TAG: ${{ vars.DOCKERREGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@@ -17,8 +17,9 @@ jobs:
|
||||
- name: login to the docker hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: ${{ vars.DOCKERREGISTRY_HOST }}
|
||||
username: ${{ vars.DOCKERREGISTRY_USERNAME }}
|
||||
password: ${{ secrets.DOCKERREGISTRY_PASSWORD }}
|
||||
- name: build and push docker image
|
||||
uses: docker/build-push-action@v4
|
||||
env:
|
||||
@@ -32,7 +33,7 @@ jobs:
|
||||
- name: send telegram message
|
||||
uses: https://github.com/appleboy/telegram-action@master
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
to: ${{ vars.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
message: |
|
||||
[Docker] ${{ env.IMAGE_TAG }} has just been released. 🎉
|
||||
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea
|
||||
12
Dockerfile
12
Dockerfile
@@ -1,7 +1,8 @@
|
||||
FROM php:8.3.7-fpm-bookworm
|
||||
FROM php:8.3.27-fpm-bookworm
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get -y --no-install-recommends install \
|
||||
git \
|
||||
libavif-dev \
|
||||
libbz2-dev \
|
||||
libfreetype6-dev \
|
||||
@@ -10,15 +11,15 @@ RUN apt-get update && \
|
||||
libjpeg-dev \
|
||||
libmagickwand-dev \
|
||||
libpng-dev \
|
||||
libvips-dev \
|
||||
libwebp-dev \
|
||||
libxml2-dev \
|
||||
libzip-dev \
|
||||
libzstd-dev \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp
|
||||
RUN printf "\n" | pecl install imagick
|
||||
RUN docker-php-ext-enable imagick
|
||||
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
bcmath \
|
||||
@@ -32,3 +33,8 @@ RUN docker-php-ext-install -j$(nproc) \
|
||||
opcache \
|
||||
xml \
|
||||
zip
|
||||
|
||||
RUN printf \n | pecl install vips && docker-php-ext-enable vips
|
||||
RUN printf \n | pecl install zstd && docker-php-ext-enable zstd
|
||||
|
||||
COPY config/access-format.conf /usr/local/etc/php-fpm.d/access-format.conf
|
||||
|
||||
2
config/access-format.conf
Normal file
2
config/access-format.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[www]
|
||||
access.format = "%{REMOTE_ADDR}e - %u %t \"%m %Q\" %s"
|
||||
Reference in New Issue
Block a user