Skip to content

Instantly share code, notes, and snippets.

@antonioribeiro
Created June 7, 2021 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonioribeiro/0a9e12eb14c6cb9c3fd2f6632b35e85e to your computer and use it in GitHub Desktop.
Save antonioribeiro/0a9e12eb14c6cb9c3fd2f6632b35e85e to your computer and use it in GitHub Desktop.
Laravel Vapor on Debian Buster
FROM php:8.0-fpm-buster
# Install `docker-php-ext-install` helper to ease installation of PHP
# extensions
#
# Ref: https://github.com/mlocati/docker-php-extension-installer
ENV PHP_EXT_INSTALLER_VERSION=1.2.26
RUN set -eux; \
curl --fail -Lo /usr/local/bin/install-php-extensions \
https://github.com/mlocati/docker-php-extension-installer/releases/download/${PHP_EXT_INSTALLER_VERSION}/install-php-extensions; \
chmod +x /usr/local/bin/install-php-extensions
# Install common PHP extensions (using `install-php-extensions`)
# (no need to install mbstring, pdo, tokenizer or xml as they are already part of base image)
RUN set -eux; \
install-php-extensions \
bcmath \
exif \
gd \
gettext \
intl \
mcrypt \
mysqli \
pcntl \
pdo_mysql \
pdo_pgsql \
redis-5.3.2 \
soap \
sockets \
xsl \
zip \
;
RUN cp "/etc/ssl/certs/ca-certificates.crt" /opt/cert.pem
COPY runtime/bootstrap /opt/bootstrap
COPY runtime/bootstrap.php /opt/bootstrap.php
COPY runtime/php.ini /usr/local/etc/php/php.ini
RUN chmod 755 /opt/bootstrap
RUN chmod 755 /opt/bootstrap.php
ENTRYPOINT []
CMD /opt/bootstrap
@keganlester
Copy link

Hello,

I am in the process of trying to convert the Vapor Alpine Image into a Debian Image and came across this. Did you ever get this to work?

@cbaconnier
Copy link

Thanks for your work @antonioribeiro ! ❤️ We used it to solve a DNS issue that we had with Alpine.

https://github.com/melba-ch/vapor-dockerfiles-buster

@keganlester It worked just perfectly for us, we didn't had to make any change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment