Move ENV commands to the top of Dockerfile.
This commit is contained in:
parent
206ca0bbd9
commit
209dcc628e
10
Dockerfile
10
Dockerfile
|
@ -1,6 +1,11 @@
|
||||||
# Inherit from the PHP 5.6 Apache image on Docker Hub.
|
# Inherit from the PHP 5.6 Apache image on Docker Hub.
|
||||||
FROM php:5.6-apache
|
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.
|
# Enable Apache rewrite module.
|
||||||
RUN a2enmod rewrite
|
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 \
|
RUN curl -fSL "http://files.drush.org/drush.phar" -o /usr/local/bin/drush \
|
||||||
&& chmod +x /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.
|
# Mount a volume at /var/www/html.
|
||||||
VOLUME /var/www/html
|
VOLUME /var/www/html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue