-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.esh
42 lines (32 loc) · 1.43 KB
/
Dockerfile.esh
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
#======================================================================================================================
# STAGE 0: get Nu scripts from the PHP image overlay
#======================================================================================================================
FROM ghcr.io/bfren/alpine AS php
WORKDIR /tmp
RUN \
# get the Nu scripts from the PHP image overlay
echo "Cloning Alpine overlay." && \
apk add git && git clone --branch <%= ${PHP_BRANCH} %> https://github.com/bfren/docker-php.git && \
mkdir /overlay && \
mv docker-php/overlay/etc /overlay/
#======================================================================================================================
# STAGE 1: create final image
#======================================================================================================================
FROM ghcr.io/bfren/nginx:<%= ${NGINX_BASE} %>-<%= ${BASE_VERSION} %> AS final
COPY --from=php /overlay /
LABEL org.opencontainers.image.source="https://github.com/bfren/docker-nginx-php"
ARG BF_IMAGE
ARG BF_PUBLISHING
ARG BF_VERSION
COPY ./overlay /
COPY ./<%= ${PHP_MINOR} %>/overlay /
ENV \
# PHP config directory
BF_PHP_DIR="<%= ${PHP_DIR} %>" \
# offical php.ini template to download
BF_PHP_ENV="production" \
# space-separated extensions to install on startup
BF_PHP_EXT= \
# PHP package prefix
BF_PHP_PREFIX="<%= ${PHP_PREFIX} %>"
RUN bf-install