-
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.5@sha256:59ee7d4d85c5ea88e3eb91ef2f93498e7bab51526327a479b4cb9f4d9b4bd567 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.4-alpine3.20@sha256:34ecccd61de90c138691bc3f95381f39786cfbdf85ca77574487b7513dbfbb21
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"]