Skip to content

Instantly share code, notes, and snippets.

@R3quest
Last active January 10, 2023 12:26
Show Gist options
  • Save R3quest/a48630ed6578ef83f8307e1ce260d6ed to your computer and use it in GitHub Desktop.
Save R3quest/a48630ed6578ef83f8307e1ce260d6ed to your computer and use it in GitHub Desktop.
Laravel Vapor Dockerfile - FFMPEG library, mysql client, GMP extension and custom php.ini file
FROM laravelphp/vapor:php81
# installing ffmpeg and mysql client,
# gmp library is needed for gmp extension to work
RUN apk --update add ffmpeg mysql-client gmp-dev
# installing php extensions -> gmp extension
RUN docker-php-ext-install gmp
# copy local php.ini file to /usr/local/etc/php/conf.d/overrides.ini
COPY ./php.ini /usr/local/etc/php/conf.d/overrides.ini
# place application in Lamda application directory...
COPY . /var/task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment