Move ENV commands to the top of Dockerfile.

This commit is contained in:
Michael Stenta 2017-08-10 12:27:30 -04:00
parent 206ca0bbd9
commit 209dcc628e
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,11 @@
# Inherit from the PHP 5.6 Apache image on Docker Hub.
FROM php:5.6-apache
# Set environment variables.
ENV FARMOS_VERSION 7.x-1.0-beta13
ENV FARMOS_DEV_BRANCH 7.x-1.x
ENV FARMOS_DEV false
# Enable Apache rewrite module.
RUN a2enmod rewrite
@ -58,11 +63,6 @@ RUN curl -fsSL 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2' -o geos.tar.b
RUN curl -fSL "http://files.drush.org/drush.phar" -o /usr/local/bin/drush \
&& chmod +x /usr/local/bin/drush
# Set environment variables.
ENV FARMOS_VERSION 7.x-1.0-beta13
ENV FARMOS_DEV_BRANCH 7.x-1.x
ENV FARMOS_DEV false
# Mount a volume at /var/www/html.
VOLUME /var/www/html