create base image from scratch instead of bash
parent
95e729b34c
commit
c81447e194
10
Dockerfile
10
Dockerfile
|
@ -1,4 +1,8 @@
|
|||
FROM bash
|
||||
FROM bash AS build
|
||||
|
||||
COPY install-php-extensions /usr/bin/install-php-extensions
|
||||
RUN chmod +x /usr/bin/install-php-extensions
|
||||
COPY install-php-extensions /tmp/install-php-extensions
|
||||
RUN chmod +x /tmp/install-php-extensions
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /tmp/install-php-extensions /usr/bin/install-php-extensions
|
||||
|
|
Loading…
Reference in New Issue