caching - AWS docker set --no-cache flag -
i using eb on aws deploy dockerfile.
currently deploy scripts: dockerfile
, run.sh
file starts server.
the dockerfile
looks this
from ubuntu:14.04 maintainer xy [...install java server...] add run.sh /run.sh run chmod +x /*.sh expose 8080 cmd ["/run.sh"]
run.sh
starts java server.
i set --no-cache
flag docker. can set that?
you can't specify docker build
's --no-cache
because eb doesn't allow to.
a workaround build image locally (using --no-cache
). use docker push
publish image docker hub public registry.
your dockerfile simplified (untested) down to:
from custom_java_server_build:latest maintainer xy expose 8080 cmd ["/run.sh"]
it sound you're creating large image, might able mitigate turning entire install sequence single run statement. don't forget delete temporary files too.
Comments
Post a Comment