Compare commits
34 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ea755a8b7a | |||
| 27f5d781aa | |||
| 4906563838 | |||
| 600700814d | |||
| bd450d140d | |||
| d2672a6801 | |||
| 8e55f0fa15 | |||
| dcf06ebe59 | |||
| a7bee66741 | |||
| be27ed7aee | |||
| 59628f1064 | |||
| ca051d8fe5 | |||
| a9f541eca7 | |||
| 76d74d311f | |||
| df9fd6b16d | |||
| 9d44994dfa | |||
| 3f44416654 | |||
| 7f804d296c | |||
| 256e30c84f | |||
| 612f180920 | |||
| b8297572e9 | |||
| 268c282ce1 | |||
| 68bc4670e5 | |||
| 0e31cf2a40 | |||
| d36306b54a | |||
| b117faa741 | |||
| 13ca868467 | |||
| 2b1a2082bb | |||
| 8a8e860c26 | |||
| ab403c8b8a | |||
| 4a9886199b | |||
| 6190dbc5c2 | |||
| 4e33821549 | |||
| f96e3ff969 |
39
.github/workflows/main.yml
vendored
Normal file
39
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Publish Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
env:
|
||||
IMAGE_TAG: ${{ vars.DOCKERREGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: set up docker buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: login to the docker hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
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:
|
||||
ACTIONS_RUNTIME_TOKEN: '' # https://gitea.com/gitea/act_runner/issues/119
|
||||
with:
|
||||
context: .
|
||||
no-cache: true
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: ${{ env.IMAGE_TAG }}
|
||||
- name: send telegram message
|
||||
uses: https://github.com/appleboy/telegram-action@master
|
||||
with:
|
||||
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
|
||||
19
Dockerfile
19
Dockerfile
@@ -1,31 +1,40 @@
|
||||
FROM php:7.4.23-fpm-buster
|
||||
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 \
|
||||
libgmp-dev \
|
||||
libicu-dev \
|
||||
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-freetype --with-jpeg --with-webp
|
||||
RUN printf "\n" | pecl install imagick
|
||||
RUN docker-php-ext-enable imagick
|
||||
RUN docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp
|
||||
|
||||
RUN docker-php-ext-install -j$(nproc) \
|
||||
bcmath \
|
||||
bz2 \
|
||||
exif \
|
||||
gd \
|
||||
gmp \
|
||||
intl \
|
||||
json \
|
||||
mysqli \
|
||||
pdo_mysql \
|
||||
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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# docker-php-fpm-ext
|
||||
PHP 7.4 FPM with custom extensions
|
||||
PHP 8.3 FPM with custom extensions
|
||||
|
||||
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