-
Notifications
You must be signed in to change notification settings - Fork 443
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
Add command in Dockerfile #385
Comments
While we're at it, it'd be great to have the option of specifying other docker commands - perhaps as a map even? The latter will then allow us to cope with new commands as they become available. The command I want right now is |
I was reluctant to quickly add this feature because it'll bake in some features that I haven't fully thought about yet. But perhaps it's time to add something -- certainly running some commands after adding files to the image is very valid use case (you need to run them once, but not every time a container is started). @huntc have you considered |
Its about being able to pass in environment variables from outside of the docker container in order. I believe that is the purpose of |
Not as far as I know: http://docs.docker.com/reference/builder/#env What you want is |
Thanks for the clarification. |
+1 to this, technically when you deploy to Amazon AWS Beanstalk, you also need something like this in your Dockerfile
without this, AWS just says that access is denied. |
Adding to @chaliy, this is needed anytime you zip up the containing code as file permissions are not retained in zip archives. This is not AWS specific. |
+1 |
Can we add a new setting key to hold some commands in Dockerfile?
for example, we need run some commands to create a couple of folders before start the application.
or change the application configure file based on docker environment value.
The text was updated successfully, but these errors were encountered: