You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
416 B
Docker
21 lines
416 B
Docker
FROM docker.io/composer:latest AS composer
|
|
|
|
COPY composer.json composer.lock ./
|
|
|
|
RUN composer install
|
|
|
|
|
|
|
|
FROM docker.io/php:apache
|
|
|
|
# copy apache configs
|
|
RUN rm /etc/apache2/sites-enabled/* \
|
|
&& a2enmod rewrite
|
|
COPY docker/ports.conf /etc/apache2/ports.conf
|
|
COPY docker/site.conf /etc/apache2/sites-enabled/site.conf
|
|
|
|
# copy source files
|
|
COPY --from=composer /app/vendor ./vendor
|
|
COPY src ./src
|
|
|
|
USER nobody:nogroup |