ENV APACHE_DOCUMENT_ROOT /var/www/mapasculturais/src
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
Created
September 12, 2017 22:02
-
-
Save oviniciusfeitosa/8cb77bd6cc6bd3ace0b3576dc682a960 to your computer and use it in GitHub Desktop.
Docker - Replacing Apache DocumentRoot using `sed`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment