You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
503 B

  1. FROM docker.io/composer:latest AS composer
  2. COPY composer.json composer.lock ./
  3. RUN composer install
  4. FROM docker.io/php:apache
  5. EXPOSE 9367/tcp
  6. ENV QUERY_HOST, QUERY_PORT, QUERY_USER_NAMe, QUERY_USER_PASSWORD_FILE
  7. # copy apache configs
  8. RUN rm /etc/apache2/sites-enabled/* \
  9. && a2enmod rewrite
  10. COPY docker/ports.conf /etc/apache2/ports.conf
  11. COPY docker/site.conf /etc/apache2/sites-enabled/site.conf
  12. # copy source files
  13. COPY --from=composer /app/vendor ./vendor
  14. COPY src ./src
  15. USER nobody:nogroup