-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (16 loc) · 948 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Container image that runs your code
FROM php:8.2-cli-alpine
RUN apk add --no-cache \
libzip-dev \
zip \
&& docker-php-ext-install zip
COPY --from=composer:2.2 /usr/bin/composer /usr/local/bin/composer
RUN /usr/local/bin/composer global config --no-interaction allow-plugins.composer/installers true
RUN /usr/local/bin/composer global config --no-interaction allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
RUN /usr/local/bin/composer global require --dev magento/magento-coding-standard
RUN ~/.composer/vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/,../../phpcompatibility/php-compatibility/PHPCompatibility
RUN echo memory_limit = -1 >> /usr/local/etc/php/conf.d/custom-memory.ini
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]