-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 1017 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 1017 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
FROM composer:2.8.9@sha256:623d15a4aae78c868a35c3942add4bb9b2f98e4a3ec26e1928c84df14695d4b0 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.7-alpine3.20@sha256:3719321d500b29a7718b2ee2528a3494ffc6da7df33695dc5b80383e92c29416
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"]