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

Adding Apache modules? #56

Closed
polds opened this issue Dec 12, 2014 · 1 comment
Closed

Adding Apache modules? #56

polds opened this issue Dec 12, 2014 · 1 comment

Comments

@polds
Copy link

polds commented Dec 12, 2014

The container has a lot of modules that are not enabled by default (I'm working with 5.4-apache so not sure about the others)

I think that because the main Dockerfile is calling CMD ["apache2", "-DFOREGROUND"] that I am unable to run any other CMDs later on (Still new to Docker).

I have the following in my Dockerfile trying to enable mod_rewrite for Apache but it appears that command is never firing as doing an ls on that directory does not show any changes.

FROM php:5.4-apache
ADD src/html /var/www/html
CMD ["cp", "/etc/apache2/mods-available/rewrite.load", "/etc/apache2/mods-enabled/"]

Is this just user error or does command order in the Dockerfile matter?

@polds
Copy link
Author

polds commented Dec 12, 2014

This was user error. My Dockerfile should use RUN instead of CMD.

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

No branches or pull requests

1 participant