📝 字数:working on
Docker¶
Estimated time to read: 1 minute
Dockerfile¶
Ref -
WORKDIRCreate and cd target dir
docker-compose.yml¶
-
ADD create.sql /docker-entrypoint-initdb.d.sh.sqlfile would be executed under this dir at the moment the container start. -
buildThe path is used as the Docker context to execute a Docker build, looking for a canonicalDockerfileat the root of the dir. -
exposeExpose the port to other services within the Docker network without publishing to the host machine.
docker-compose¶
--build
Force build(rebuild)