Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An equivalent to --no-cache #973

Closed
LeoAref opened this issue May 11, 2017 · 1 comment
Closed

An equivalent to --no-cache #973

LeoAref opened this issue May 11, 2017 · 1 comment
Labels

Comments

@LeoAref
Copy link

LeoAref commented May 11, 2017

I'm wondering how we can achieve the same behaviour of using --no-cache option, like:

docker build --no-cache -t my-awesome-app .

Currently, each time I run sbt docker:publishLocal, it builds on top of the latest built image

@muuki88 muuki88 added the docker label May 12, 2017
@muuki88
Copy link
Contributor

muuki88 commented May 12, 2017

Thanks for your question. I guess you are looking for this setting: dockerBuildOptions. You can extend this with the options you like.

dockerBuildOptions += "--no-cache"

See the documentation: http://sbt-native-packager.readthedocs.io/en/latest/formats/docker.html#publishing-settings

@muuki88 muuki88 closed this as completed May 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants