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
version: '3' | |
services: | |
php: | |
image: kniziol/php:7.2-cli |
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
docker push <name-of-image> # e.g. docker push kniziol/php:7.2-cli |
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
docker build -t <your-tag> . # e.g. docker build -t kniziol/php:7.2-cli . |
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
docker login --username=<username> # e.g. docker login --username=kniziol |
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:7.2-cli | |
MAINTAINER Krzysztof Nizioł <krzysztof@niziol.me> | |
# | |
# Tools & libraries | |
# | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
vim \ | |
git \ |