-
Notifications
You must be signed in to change notification settings - Fork 520
/
Dockerfile
50 lines (39 loc) · 900 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM composer:latest AS build
WORKDIR /satis
COPY . /satis/
RUN set -eux ; \
composer install \
--no-interaction \
--no-ansi \
--no-scripts \
--no-plugins \
--no-dev \
--prefer-dist \
--no-progress \
--no-suggest \
--classmap-authoritative
FROM php:8-cli-alpine
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN set -eux ; \
apk upgrade --no-cache ; \
apk add --no-cache --upgrade \
bash \
curl \
git \
mercurial \
openssh \
openssl \
p7zip \
subversion \
unzip \
zip ; \
install-php-extensions \
bz2 \
sockets \
zip
ENV COMPOSER_HOME /composer
COPY php-cli.ini /usr/local/etc/php/
COPY --from=build /satis /satis/
WORKDIR /build
ENTRYPOINT ["/satis/bin/docker-entrypoint.sh"]
CMD ["--ansi", "-vvv", "build", "/build/satis.json", "/build/output"]