Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
What do you want to create today?

Krzysztof Nizioł kniziol

🤓
What do you want to create today?
View GitHub Profile
@kniziol
kniziol / docker-compose.yml
Created Nov 17, 2018
Usage of created and pushed image
View docker-compose.yml
version: '3'
services:
php:
image: kniziol/php:7.2-cli
@kniziol
kniziol / docker-push.sh
Created Nov 17, 2018
Push an image or a repository to a Docker Hub
View docker-push.sh
docker push <name-of-image> # e.g. docker push kniziol/php:7.2-cli
@kniziol
kniziol / docker-build.sh
Created Nov 17, 2018
Build an image from a Dockerfile
View docker-build.sh
docker build -t <your-tag> . # e.g. docker build -t kniziol/php:7.2-cli .
@kniziol
kniziol / docker-login.sh
Last active Nov 17, 2018
Login to Docker Hub using docker login command
View docker-login.sh
docker login --username=<username> # e.g. docker login --username=kniziol
@kniziol
kniziol / Dockerfile
Last active Nov 15, 2018
Simple Dockerfile PHP 7.2 CLI
View Dockerfile
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 \