January 2019
Intermediate to advanced
460 pages
10h 33m
English
The Dockerfile and .dockerignore files are ready. Docker provides us with the tools to generate a real image, which we can run or share with others. Having a Dockerfile on its own does not make an application dockerized.
Make sure that the database credentials specified in the /server/config/index.js file for the back end are valid for development, because they are statically saved there. Furthermore, the MySQL host must allow for remote connections from inside the container.
Execute the following command to build the Docker image on your local machine:
docker build -t sgrebe/graphbook .
This command requires you to have the Docker CLI and daemon installed.
The first option that we use is -t, following ...
Read now
Unlock full access