-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (21 loc) · 917 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
ARG PHP_VERSION=8.1.24
ARG BASE_IMAGE_TAG_SUFFIX=cli-alpine3.18
ARG BASE_IMAGE_TAG=${PHP_VERSION}-${BASE_IMAGE_TAG_SUFFIX}
ARG BASE_IMAGE=php:${BASE_IMAGE_TAG}
FROM ${BASE_IMAGE}
MAINTAINER Norbert Orzechowicz <[email protected]>
ARG AEON_AUTOMATION_VERSION=^1.0
RUN echo "Building image for Automation: $AEON_AUTOMATION_VERSION"
ENV COMPOSER_HOME /composer
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV PATH /composer/vendor/bin:$PATH
ENV PHP_CONF_DIR=/usr/local/etc/php/conf.d
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN apk add --no-cache tini \
&& echo "memory_limit=-1" > $PHP_INI_DIR/conf.d/memory-limit.ini \
&& composer clear-cache \
&& composer global require aeon-php/automation:${AEON_AUTOMATION_VERSION} --prefer-dist
RUN composer global info aeon-php/automation
ENTRYPOINT ["/sbin/tini", "--", "/composer/vendor/bin/automation"]
VOLUME ["/automation"]
WORKDIR /automation