Created
July 21, 2020 23:30
-
-
Save almino/316d74e6f7f9861b2831b8506f675095 to your computer and use it in GitHub Desktop.
PHP Composer on a Docker container
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
function composer | |
docker run -it --rm --user 1000:33 -v "$PWD":/app -v "$HOME/.composer":/tmp -w /app composer $argv | |
end |
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 composer | |
RUN chown -Rf 1000:33 /tmp \ | |
&& composer global require hirak/prestissimo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment