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 ca1eafd
Show file tree
Hide file tree
Showing 3 changed files with 31 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 - <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.
29 changes: 29 additions & 0 deletions Debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM php:8.2.12-fpm

RUN apt-get update && \
apt-get --assume-yes install libicu-dev libxslt1.1 libxslt1-dev libffi-dev libpq5 libpq-dev libgmp-dev unzip \
&& 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 --assume-yes purge libicu-dev libxslt1-dev libffi-dev libpq-dev libgmp-dev \
&& apt-get --assume-yes autoremove \
&& rm -rf /var/lib/apt/lists/*

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

0 comments on commit ca1eafd

Please sign in to comment.