-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
41 lines (29 loc) · 1.43 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM composer:2 AS composer
FROM php:8.2-alpine
COPY --from=composer /usr/bin/composer /usr/bin/composer
LABEL "com.github.actions.name"="laminas/automatic-releases"
LABEL "com.github.actions.description"="Creates git tags, releases, release branches and merge-up PRs based on closed milestones"
LABEL "com.github.actions.icon"="check"
LABEL "com.github.actions.color"="blue"
LABEL "repository"="https://github.com/laminas/automatic-releases"
LABEL "homepage"="https://github.com/laminas/automatic-releases"
LABEL "maintainer"="https://github.com/laminas/technical-steering-committee/"
WORKDIR /app
RUN apk add --no-cache git git-lfs gnupg libzip icu-dev \
&& apk add --no-cache --virtual .build-deps libzip-dev \
&& git lfs install --skip-repo \
&& docker-php-ext-install zip \
&& docker-php-ext-install bcmath \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl \
&& apk del .build-deps
COPY composer.* /app/
RUN COMPOSER_CACHE_DIR=/dev/null composer install --no-dev --no-autoloader
# @TODO https://github.com/laminas/automatic-releases/issues/8 we skip `.git` for now, as it isn't available in the build environment
# @TODO https://github.com/laminas/automatic-releases/issues/9 we skip `.git` for now, as it isn't available in the build environment
#ADD .git /app/.git
COPY bin /app/bin/
COPY src /app/src/
RUN composer dump-autoload -a --no-dev
ENV SHELL_VERBOSITY=3
ENTRYPOINT ["/app/bin/console.php"]