-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 849 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:8.2-cli
RUN apt update && apt install -y git unzip
RUN apt autoremove
RUN cd ~ \
&& curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php \
&& HASH=`curl -sS https://composer.github.io/installer.sig` \
&& echo $HASH \
&& php -r "if (hash_file('SHA384', '/tmp/composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& composer
ARG PHP_CONVENTIONAL_CHANGELOG_VERSION=1.16.0
RUN composer global require marcocesarato/php-conventional-changelog:^${PHP_CONVENTIONAL_CHANGELOG_VERSION}
ENV PATH="~/.composer/vendor/bin:${PATH}"
RUN mkdir -p /codebase
WORKDIR /codebase
CMD ["/root/.composer/vendor/bin/conventional-changelog"]