You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 anls
on that directory does not show any changes.Is this just user error or does command order in the Dockerfile matter?
The text was updated successfully, but these errors were encountered: