Skip to content

Commit 845ec06

Browse files
Davide Morodavidemoro
authored andcommitted
cache docker image
1 parent 317ef55 commit 845ec06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_slug}}/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ install: clean ## install the package to the active Python's site-packages
8686
python setup.py install
8787

8888
docker-build:
89-
docker build -t {{cookiecutter.project_slug}} .
89+
docker build -t {{cookiecutter.project_slug}} -t {{cookiecutter.project_slug}}:latest --cache-from {{cookiecutter.project_slug}}:latest .
9090

9191
docker-run: docker-build
9292
docker run --rm -i {{cookiecutter.project_slug}}

0 commit comments

Comments
 (0)