Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Can select version with env variable APACHE_VERSION
  • Loading branch information
tikoflano authored Sep 4, 2018
1 parent d705ba2 commit 5da462a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM httpd:2.4.33-alpine
ARG APACHE_VERSION=""
FROM httpd:${APACHE_VERSION:+${APACHE_VERSION}-}alpine

RUN apk update; \
apk upgrade;

# Copy apache vhost file to proxy php requests to php-fpm container
COPY demo.apache.conf /usr/local/apache2/conf/demo.apache.conf
RUN echo "Include /usr/local/apache2/conf/demo.apache.conf" \
>> /usr/local/apache2/conf/httpd.conf
>> /usr/local/apache2/conf/httpd.conf

0 comments on commit 5da462a

Please sign in to comment.