Skip to content

Instantly share code, notes, and snippets.

View kniziol's full-sized avatar
🙂
What do you want to build today?

Krzysztof Nizioł kniziol

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