Created
June 7, 2021 15:31
-
-
Save antonioribeiro/0a9e12eb14c6cb9c3fd2f6632b35e85e to your computer and use it in GitHub Desktop.
Laravel Vapor on Debian Buster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
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?