Building docker images with Dockerfiles. To build an alpine linux docker image with sqlite. Create a directory. In the directory above create a Dockerfile. Add the desired commands in the Dockerfile. Following are the commands in the Dockerfile.