-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
14 lines (10 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
14 lines (10 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Container image that runs your code
FROM php:7.4.12-cli-alpine3.11
COPY --from=composer:1 /usr/bin/composer /usr/local/bin/composer
RUN /usr/local/bin/composer global require 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
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]