forked from Sylius/SyliusResourceBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (16 loc) · 802 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
ARG COMPOSER_VERSION=2.3
ARG PHP_VERSION=8.3
FROM composer:${COMPOSER_VERSION} AS composer
FROM mlocati/php-extension-installer AS php_extension_installer
FROM php:${PHP_VERSION}-cli-alpine AS php
COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --from=php_extension_installer /usr/bin/install-php-extensions /usr/bin/install-php-extensions
RUN install-php-extensions pdo_sqlite
COPY . /app
WORKDIR /app
RUN composer global config --no-plugins allow-plugins.symfony/flex true
RUN composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10"
RUN composer update --with-all-dependencies --no-interaction --no-progress
WORKDIR /app/tests/Application
RUN php bin/console doctrine:database:create && php bin/console doctrine:schema:update --force
WORKDIR /app