🔧 Push release version to Docker image

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-17 11:57:30 +01:00
parent c8576aa757
commit 099b82f13a
3 changed files with 9 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ 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