Skip to content

Commit

Permalink
Added Debian build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Nov 18, 2023
1 parent ac53c70 commit 96d2ce7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: image=${GITHUB_REPOSITORY,,} && >>"$GITHUB_ENV" echo image=${image%-*}

- name: Build Docker image
run: docker build --tag ${{ env.registry }}/${{ env.image }} .
run: docker build --tag ${{ env.registry }}/${{ env.image }} <Debian.Dockerfile

- name: Push Docker image
run: docker push ${{ env.registry }}/${{ env.image }}
run: docker push ${{ env.registry }}/${{ env.image }}:debian
File renamed without changes.
27 changes: 27 additions & 0 deletions Debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM php:8.2.12-fpm

RUN apt-get update && \
apt-get install libicu-dev libxslt1-dev libffi-dev libpq-dev libgmp-dev \
&& docker-php-ext-install opcache \
# Number formatting in our own application templates requires intl.
intl \
# symfony/messenger requires PCNTL for graceful shutdown of queue workers.
pcntl \
# Pheanstalk requires sockets extension otherwise it throws SocketException with "Unknown error" (CLUB-250-B6).
sockets \
# lorenzo/pinky requires XSL extension.
xsl \
# amphp/hpack can benefit from FFI extension.
ffi \
# amphp/postgres requires either pecl-pq or ext-pgsql.
pgsql \
# Phinx requires pdo_pgsql extension.
pdo_pgsql \
# xpaw/steamid requires GMP extension.
gmp \
# All dev packages can be removed post-compile, however the main packages cannot.
&& apt-get purge libicu-dev libxslt1-dev libffi-dev libpq-dev libgmp-dev

# Install Composer.
RUN wget https://raw.githubusercontent.com/composer/getcomposer.org/main/web/installer -qO- |\
php -- --install-dir /usr/local/bin --filename composer

0 comments on commit 96d2ce7

Please sign in to comment.