1FROM composer:latest as setup
2
3RUN mkdir /guzzle
4
5WORKDIR /guzzle
6
7RUN set -xe \
8    && composer init --name=guzzlehttp/test --description="Simple project for testing Guzzle scripts" --author="Márk Sági-Kazár <mark.sagikazar@gmail.com>" --no-interaction \
9    && composer require guzzlehttp/guzzle
10
11
12FROM php:7.3
13
14RUN mkdir /guzzle
15
16WORKDIR /guzzle
17
18COPY --from=setup /guzzle /guzzle
19