Created
October 9, 2018 12:10
-
-
Save adlawson/9cbb0cbbbc2cbc6e4173e20ec843eebd to your computer and use it in GitHub Desktop.
PHP w/ Oauth for Ed
This file contains hidden or 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:7 | |
RUN apt-get update && \ | |
apt-get install -y libpcre3-dev && \ | |
pecl install oauth && \ | |
echo "extension=oauth.so" >> /usr/local/etc/php/conf.d/oauth.ini |
You can also check the modules installed with
docker run -it --rm d:/path/to/my/php/project:/usr/src php-with-oauth -m
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Step 1
Write the contents of Dockerfile (above) to a file called
Dockerfile
Step 2
docker build -t php-with-oauth .
Step 3