* 🔧 Push release version to Docker image Signed-off-by: Luke Tainton <luke@tainton.uk> * Restyle 🔧 Push release version to Docker image (#115) * Restyled by php-cs-fixer * Restyled by whitespace Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
12 lines
351 B
Docker
12 lines
351 B
Docker
FROM composer as build
|
|
COPY app /srv
|
|
RUN composer --working-dir=/srv install
|
|
|
|
FROM php:apache
|
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
|
ARG VERSION
|
|
RUN docker-php-ext-install pdo_mysql && a2enmod rewrite remoteip
|
|
COPY vhost.conf /etc/apache2/sites-enabled/000-default.conf
|
|
COPY --from=build /srv /srv
|
|
RUN echo $VERSION > /srv/includes/VERSION
|