File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change
1
+ # syntax = docker/dockerfile:1.4
1
2
ARG PHP_VERSION
2
3
ARG CPU_PREFIX
3
4
@@ -7,23 +8,23 @@ RUN apk add composer
7
8
8
9
RUN mkdir -p /opt/bref/console-runtime
9
10
WORKDIR /opt/bref/console-runtime
10
- COPY composer.json composer.json
11
+ COPY --link composer.json composer.json
11
12
RUN composer install --ignore-platform-req=ext-posix --ignore-platform-req=ext-simplexml
12
13
13
14
FROM bref/${CPU_PREFIX}php-$PHP_VERSION as console
14
15
15
16
# Overwrite the "function" bootstrap file
16
- COPY bref/bootstrap.php /opt/bref/bootstrap.php
17
+ COPY --link bref/bootstrap.php /opt/bref/bootstrap.php
17
18
18
- COPY --from=composer /opt/bref/console-runtime /opt/bref/console-runtime
19
+ COPY --link -- from=composer /opt/bref/console-runtime /opt/bref/console-runtime
19
20
20
21
FROM alpine:3.14 as zip-console
21
22
22
23
RUN apk add zip
23
24
24
25
RUN mkdir -p /opt/bref
25
- COPY --from=console /opt/bref/bootstrap.php /opt/bref/bootstrap.php
26
- COPY --from=console /opt/bref/console-runtime /opt/bref/console-runtime
26
+ COPY --link -- from=console /opt/bref/bootstrap.php /opt/bref/bootstrap.php
27
+ COPY --link -- from=console /opt/bref/console-runtime /opt/bref/console-runtime
27
28
28
29
WORKDIR /opt
29
30
Original file line number Diff line number Diff line change
1
+ # syntax = docker/dockerfile:1.4
1
2
ARG CPU_PREFIX
2
3
ARG PHP_VERSION
3
4
@@ -21,16 +22,16 @@ RUN if [[ $CPU_PREFIX == "arm-" ]]; then curl -A "Docker" -o /opt/bref/extension
21
22
22
23
FROM bref/${CPU_PREFIX}php-${PHP_VERSION}-fpm
23
24
24
- COPY --from=build_extensions /opt /opt
25
- COPY bref-entrypoint.sh /
25
+ COPY --link -- from=build_extensions /opt /opt
26
+ COPY --link bref-entrypoint.sh /
26
27
RUN chmod +x /bref-entrypoint.sh
27
28
28
29
# Install node to run the JS app below
29
30
RUN curl --silent --location https://rpm.nodesource.com/setup_16.x | bash -
30
31
RUN yum install --setopt=skip_missing_names_on_install=False -y nodejs
31
32
32
33
# Install the bref/local-api-gateway app in our container (avoids running 2 containers)
33
- COPY --from=bref/local-api-gateway /app /local-api-gateway
34
+ COPY --link -- from=bref/local-api-gateway /app /local-api-gateway
34
35
EXPOSE 8000
35
36
36
37
# Add `php/conf.dev.d` to the path where PHP looks for configuration files
You can’t perform that action at this time.
0 commit comments