Building from source To build from source you need to clone the git repo and run docker build: git clone https://github.com/jcsofts/alpine-nginx-php7 .git docker build -t alpine-nginx-php7:latest .