-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (17 loc) · 1017 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
FROM composer:2.8.4@sha256:146529cee6088f2a6b509f7ee8062cbe3a1889fa73d2bb7417d2dafa2c645dd3 AS build-env
ENV PHP_EXTENSIONS="bcmath intl xsl"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# hadolint ignore=SC2086
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions ${PHP_EXTENSIONS}
COPY . /opt/drupal-security-jira
WORKDIR /opt/drupal-security-jira
RUN composer install --prefer-dist --no-dev
FROM php:8.4.2-alpine3.20@sha256:d59029b1f24001eb08a631d16be3620247d4782981df66b13a9ffe84f1a6b6a1
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# hadolint ignore=SC2086
RUN chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions ${PHP_EXTENSIONS}
COPY --from=build-env /opt/drupal-security-jira /opt/drupal-security-jira
ENTRYPOINT ["/opt/drupal-security-jira/bin/drupal-security-jira"]
CMD ["--verbose"]