Files
FHeD/Dockerfile
2021-03-06 16:44:29 +00:00

13 lines
427 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>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/fhed"
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