Dockerfile 387 B

123456789101112131415161718
  1. FROM composer:latest as setup
  2. RUN mkdir /guzzle
  3. WORKDIR /guzzle
  4. RUN set -xe \
  5. && 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 \
  6. && composer require guzzlehttp/guzzle
  7. FROM php:7.3
  8. RUN mkdir /guzzle
  9. WORKDIR /guzzle
  10. COPY --from=setup /guzzle /guzzle