-
-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (17 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
28 lines (17 loc) · 825 Bytes
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
27
28
ARG COMPOSER_VERSION=2.3
ARG PHP_VERSION=8.4
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 echo "memory_limit=512M" > /usr/local/etc/php/conf.d/memory-limit.ini
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:schema:create
WORKDIR /app