Files
robot-shop/ratings/Dockerfile

27 lines
497 B
Docker
Raw Permalink Normal View History

2019-02-05 15:34:24 +00:00
# Use composer to install dependencies
FROM composer AS build
COPY composer.json /app/
RUN composer install
#
# Build the app
#
2019-07-11 10:23:26 +01:00
FROM php:7.3-apache
2018-08-21 14:47:19 +01:00
RUN docker-php-ext-install pdo_mysql
# relax permissions on status
COPY status.conf /etc/apache2/mods-available/status.conf
# Enable Apache mod_rewrite and status
RUN a2enmod rewrite && a2enmod status
WORKDIR /var/www/html
2019-02-05 15:34:24 +00:00
# copy dependencies from previous step
COPY --from=build /app/vendor/ /var/www/html/vendor/
2018-08-21 14:47:19 +01:00
COPY html/ /var/www/html